Interface Lock
- 
- All Known Subinterfaces:
 ClusteredLock
@Deprecated public interface Lock
Deprecated.Since 5.6, useClusterLockServicefor locking which returns instances ofLockGeneric lock interface - a subset of Java 1.5 java.util.concurrent.locks.Lock interface.LockAdaptercan wrap an instance of this class to provide the full java.util.concurrent interface.- See Also:
 LockOperation,LockAdapter
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidlock()Deprecated.Acquire a lock - blocks until lock is successfully acquiredbooleantryLock()Deprecated.Try to obtain a lock - returns immediatelyvoidunlock()Deprecated.Unlock this lock 
 - 
 
- 
- 
Method Detail
- 
tryLock
boolean tryLock()
Deprecated.Try to obtain a lock - returns immediately- Returns:
 - true if the lock was successful, false if currently locked by something else
 
 
- 
unlock
void unlock()
Deprecated.Unlock this lock 
- 
lock
void lock()
Deprecated.Acquire a lock - blocks until lock is successfully acquired 
 - 
 
 -