| Modifier and Type | Method and Description |
|---|---|
org.bson.types.ObjectId |
getLockId()
Returns the lock id if current locked (null if not).
|
String |
getName()
Returns the lock name.
|
DistributedLockOptions |
getOptions()
Returns the options used to configure this lock.
|
boolean |
isLocked()
Returns true if the lock is currently locked by the local process.
|
void |
wakeupBlocked()
Wakeup any blocked threads.
|
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlockboolean isLocked()
String getName()
org.bson.types.ObjectId getLockId()
DistributedLockOptions getOptions()
void wakeupBlocked()