Package org.rostore.v2.container.async
Class ContainerShardExecutor
java.lang.Object
org.rostore.v2.container.async.ContainerShardExecutor
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContainerShardExecutor(AsyncContainer asyncContainer, org.rostore.v2.container.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<org.rostore.v2.container.ContainerShardKeyOperations, R> opsConsumer) <R> Future<R>executeValue(int sessionId, OperationType opsType, long valueId, boolean failInShutdown, Supplier<R> supplier) org.rostore.v2.container.ContainerShardgetShard()booleanisIdle()voidshutdown()voidvoidvoid
-
Constructor Details
-
ContainerShardExecutor
protected ContainerShardExecutor(AsyncContainer asyncContainer, org.rostore.v2.container.ContainerShard shard)
-
-
Method Details
-
getShard
public org.rostore.v2.container.ContainerShard getShard() -
getAsyncContainers
-
shutdown
public void shutdown() -
isIdle
public boolean isIdle() -
executeKey
public <R> Future<R> executeKey(int sessionId, OperationType opsType, boolean failInShutdown, Function<org.rostore.v2.container.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()
-