Package nxt.util
Interface ReadWriteUpdateLock.Lock
- Enclosing class:
- ReadWriteUpdateLock
public static interface ReadWriteUpdateLock.Lock
Lock interface
-
Method Summary
-
Method Details
-
lock
void lock()Obtain the lock -
unlock
void unlock()Release the lock -
hasLock
boolean hasLock()Check if the thread holds the lock- Returns:
- TRUE if the thread holds the lock
-