Package org.opends.server.types
Class LockManager.DNLock
- java.lang.Object
-
- org.opends.server.types.LockManager.DNLock
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- LockManager
public final class LockManager.DNLock extends Object implements Closeable
A lock on an entry or subtree. A lock can only be unlocked once.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringtoString()voidunlock()Unlocks this lock and releases any blocked threads.
-
-
-
Method Detail
-
unlock
public void unlock()
Unlocks this lock and releases any blocked threads.- Throws:
IllegalStateException- If this lock has already been unlocked.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-