Interface DistributedLockManager
- All Superinterfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionvoiddefault voidclose()getDistributedLock(String lockId) getMutableLong(String mutableLongId) booleanstatic DistributedLockManagernewInstanceOf(String className, Map<String, String> properties) voidvoidstart()booleanvoidstop()
-
Method Details
-
newInstanceOf
static DistributedLockManager newInstanceOf(String className, Map<String, String> properties) throws Exception- Throws:
Exception
-
start
-
start
-
isStarted
boolean isStarted() -
stop
void stop() -
getDistributedLock
DistributedLock getDistributedLock(String lockId) throws InterruptedException, ExecutionException, TimeoutException -
getMutableLong
MutableLong getMutableLong(String mutableLongId) throws InterruptedException, ExecutionException, TimeoutException -
close
default void close()- Specified by:
closein interfaceAutoCloseable
-