- public CreateShard(@Nonnull String shardName, @Nonnull Collection<String> memberNames,
- @Nonnull ShardPropsCreator shardPropsCreator, @Nullable DatastoreContext datastoreContext) {
- this.shardName = Preconditions.checkNotNull(shardName);
- this.memberNames = Preconditions.checkNotNull(memberNames);
- this.shardPropsCreator = Preconditions.checkNotNull(shardPropsCreator);
+ public CreateShard(@Nonnull ModuleShardConfiguration moduleShardConfig,
+ @Nonnull Shard.AbstractBuilder<?, ?> shardBuilder, @Nullable DatastoreContext datastoreContext) {
+ this.moduleShardConfig = Preconditions.checkNotNull(moduleShardConfig);
+ this.shardBuilder = Preconditions.checkNotNull(shardBuilder);