Class ModuleShardConfiguration


  • public class ModuleShardConfiguration
    extends Object
    Encapsulates information for adding a new module shard configuration.
    Author:
    Thomas Pantelis
    • Constructor Detail

      • ModuleShardConfiguration

        public ModuleShardConfiguration​(@NonNull URI namespace,
                                        @NonNull String moduleName,
                                        @NonNull String shardName,
                                        @Nullable String shardStrategyName,
                                        @NonNull Collection<MemberName> shardMemberNames)
        Constructs a new instance.
        Parameters:
        namespace - the name space of the module.
        moduleName - the name of the module.
        shardName - the name of the shard.
        shardStrategyName - the name of the sharding strategy (eg "module"). If null the default strategy is used.
        shardMemberNames - the names of the shard's member replicas.
    • Method Detail

      • getNamespace

        public URI getNamespace()
      • getModuleName

        public String getModuleName()
      • getShardName

        public String getShardName()
      • getShardStrategyName

        public String getShardStrategyName()