Class CreateShard


  • public class CreateShard
    extends Object
    A message sent to the ShardManager to dynamically create a new shard.
    Author:
    Thomas Pantelis
    • Constructor Detail

      • CreateShard

        public CreateShard​(@NonNull ModuleShardConfiguration moduleShardConfig,
                           @NonNull Shard.AbstractBuilder<?,​?> shardBuilder,
                           @Nullable DatastoreContext datastoreContext)
        Constructor.
        Parameters:
        moduleShardConfig - the configuration of the new shard.
        shardBuilder - used to obtain the Props for creating the shard actor instance.
        datastoreContext - the DatastoreContext for the new shard. If null, the default is used.