- Props shardProps = Shard.props(ShardIdentifier.builder().memberName("member-1").
- shardName("inventory").type("config").build(),
- Collections.<String,String>emptyMap(),
- DatastoreContext.newBuilder().shardHeartbeatIntervalInMillis(100).build(),
- schemaContext).withDispatcher(Dispatchers.DefaultDispatcherId());
+ Props shardProps = Shard.builder().id(ShardIdentifier.builder().memberName("member-1").
+ shardName("inventory").type("config").build()).datastoreContext(DatastoreContext.newBuilder().
+ shardHeartbeatIntervalInMillis(100).build()).schemaContext(schemaContext).props().
+ withDispatcher(Dispatchers.DefaultDispatcherId());