public interface ShardDistributionStrategy
| Modifier and Type | Method and Description |
|---|---|
void |
registerWaitForRelease(ActorShard localShard,
PhysicalNode currentOwner)
Wait for signal from the current shard owner, when the signal comes in
ActorContainer.init()
should be called within the implementation |
void |
signalRelease(ActorShard localShard,
PhysicalNode nextOwner)
Signal to the cluster that a Local ActorShard has been given up
|
boolean |
waitForReleasedShards(long waitTime,
TimeUnit unit)
Block until all Shard that were registered to wait for release are handled, or the specified
waitTime has run out.
|
void signalRelease(ActorShard localShard, PhysicalNode nextOwner) throws Exception
localShard - nextOwner - Exceptionvoid registerWaitForRelease(ActorShard localShard, PhysicalNode currentOwner) throws Exception
ActorContainer.init()
should be called within the implementationlocalShard - currentOwner - Exceptionboolean waitForReleasedShards(long waitTime,
TimeUnit unit)
waitTime - unit - Copyright © 2021. All rights reserved.