Interface DistributedLock
- All Superinterfaces:
AutoCloseable
-
Method Details
-
getLockId
String getLockId() -
isHeldByCaller
- Throws:
UnavailableStateException
-
tryLock
-
tryLock
default boolean tryLock(long timeout, TimeUnit unit) throws UnavailableStateException, InterruptedException -
unlock
- Throws:
UnavailableStateException
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-