Package org.rostore.v2.container.async
Class ContainerShardExecutor
java.lang.Object
org.rostore.v2.container.async.ContainerShardExecutor
-
Constructor Summary
ModifierConstructorDescriptionprotected
ContainerShardExecutor
(AsyncContainer asyncContainer, ContainerShard shard) -
Method Summary
Modifier and TypeMethodDescription<R> Future
<R> <R> Future
<R> executeAutonomousValue
(int sessionId, OperationType opsType, long valueId, boolean failInShutdown, Runnable valueOp) <R> Future
<R> executeKey
(int sessionId, OperationType opsType, boolean failInShutdown, Function<ContainerShardKeyOperations, R> opsConsumer) <R> Future
<R> executeValue
(int sessionId, OperationType opsType, long valueId, boolean failInShutdown, Supplier<R> supplier) getShard()
boolean
isIdle()
void
shutdown()
void
void
void
-
Constructor Details
-
ContainerShardExecutor
-
-
Method Details
-
getShard
-
getAsyncContainers
-
shutdown
public void shutdown() -
isIdle
public boolean isIdle() -
executeKey
public <R> Future<R> executeKey(int sessionId, OperationType opsType, boolean failInShutdown, Function<ContainerShardKeyOperations, R> opsConsumer) -
executeAutonomousValue
public <R> Future<R> executeAutonomousValue(int sessionId, OperationType opsType, long valueId, boolean failInShutdown, Runnable valueOp) -
executeValue
public <R> Future<R> executeValue(int sessionId, OperationType opsType, long valueId, boolean failInShutdown, Supplier<R> supplier) -
execute
-
shutdownIfHasTo
public void shutdownIfHasTo() -
shutdownAndWait
public void shutdownAndWait() -
waitForShutdown
public void waitForShutdown()
-