public interface DistributedPrimitiveManager extends AutoCloseable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DistributedPrimitiveManager.UnavailableManagerListener |
| Modifier and Type | Method and Description |
|---|---|
void |
addUnavailableManagerListener(DistributedPrimitiveManager.UnavailableManagerListener listener) |
default void |
close() |
DistributedLock |
getDistributedLock(String lockId) |
MutableLong |
getMutableLong(String mutableLongId) |
boolean |
isStarted() |
static DistributedPrimitiveManager |
newInstanceOf(String className,
Map<String,String> properties) |
void |
removeUnavailableManagerListener(DistributedPrimitiveManager.UnavailableManagerListener listener) |
void |
start() |
boolean |
start(long timeout,
TimeUnit unit) |
void |
stop() |
static DistributedPrimitiveManager newInstanceOf(String className, Map<String,String> properties) throws Exception
Exceptionvoid addUnavailableManagerListener(DistributedPrimitiveManager.UnavailableManagerListener listener)
void removeUnavailableManagerListener(DistributedPrimitiveManager.UnavailableManagerListener listener)
boolean start(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException
void start()
throws InterruptedException,
ExecutionException
boolean isStarted()
void stop()
DistributedLock getDistributedLock(String lockId) throws InterruptedException, ExecutionException, TimeoutException
MutableLong getMutableLong(String mutableLongId) throws InterruptedException, ExecutionException, TimeoutException
default void close()
close in interface AutoCloseableCopyright © 2021 The Apache Software Foundation. All rights reserved.