Interface ShardCoordinator.ActorSystemDependentAllocationStrategy
-
- All Superinterfaces:
NoSerializationVerificationNeeded
,ShardCoordinator.ShardAllocationStrategy
- Enclosing class:
- ShardCoordinator
public static interface ShardCoordinator.ActorSystemDependentAllocationStrategy extends ShardCoordinator.ShardAllocationStrategy
Shard allocation strategy where start is called by the shard coordinator before any calls to rebalance or allocate shard. This is much like theShardCoordinator.StartableAllocationStrategy
but will get access to the actor system when started, for example to interact with extensions.INTERNAL API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
start(ActorSystem system)
Called before any calls to allocate/rebalance.-
Methods inherited from interface org.apache.pekko.cluster.sharding.ShardCoordinator.ShardAllocationStrategy
allocateShard, rebalance
-
-
-
-
Method Detail
-
start
void start(ActorSystem system)
Called before any calls to allocate/rebalance. Do not block. If asynchronous actions are required they can be started here and delay the Futures returned by allocate/rebalance.
-
-