public interface RLock extends Lock, RObject
Lock
Implements reentrant lock.
Use getHoldCount()
to get a holds count.Modifier and Type | Method and Description |
---|---|
void |
forceUnlock()
Unlocks lock independently of state
|
int |
getHoldCount()
Number of holds on this lock by the current thread
|
boolean |
isHeldByCurrentThread()
Checks if this lock is held by the current thread
|
boolean |
isLocked()
Checks if this lock locked by any thread in Redisson cluster
|
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
void forceUnlock()
boolean isLocked()
true
if locked otherwise false
boolean isHeldByCurrentThread()
true
if held by current thread
otherwise false
int getHoldCount()
0
if this lock is not held by current threadCopyright © 2014. All rights reserved.