Package org.jgroups.blocks.locking
Class LockService.LockImpl
java.lang.Object
org.jgroups.blocks.locking.LockService.LockImpl
- All Implemented Interfaces:
Lock
- Enclosing class:
LockService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
-
holder
-
-
Constructor Details
-
LockImpl
-
-
Method Details
-
lock
public void lock() -
lockInterruptibly
- Specified by:
lockInterruptiblyin interfaceLock- Throws:
InterruptedException
-
tryLock
public boolean tryLock() -
tryLock
- Specified by:
tryLockin interfaceLock- Throws:
InterruptedException
-
unlock
public void unlock() -
newCondition
This condition object is only allowed to work 1 for each lock. If more than 1 condition is created for this lock, they both will be awaiting/signalling on the same lock- Specified by:
newConditionin interfaceLock
-