ONE_CENTURY, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR| Constructor and Description |
|---|
NonStopSyncWrapper(Sync delegate,
ToolkitInstanceFactory toolkitInstanceFactory,
ToolkitNonStopExceptionOnTimeoutConfiguration toolkitNonStopConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isHeldByCurrentThread(LockType type) |
void |
lock(LockType type) |
boolean |
tryLock(LockType type,
long msec) |
void |
unlock(LockType type) |
public NonStopSyncWrapper(Sync delegate, ToolkitInstanceFactory toolkitInstanceFactory, ToolkitNonStopExceptionOnTimeoutConfiguration toolkitNonStopConfiguration)
public boolean tryLock(LockType type, long msec) throws InterruptedException
tryLock in interface SyncInterruptedExceptionpublic boolean isHeldByCurrentThread(LockType type)
isHeldByCurrentThread in interface SyncCopyright © 2003–2024 Terracotta, Inc.. All rights reserved.