*
* @author Thomas Pantelis
*/
-public class EntityOwnershipShardPropsCreator implements ShardPropsCreator {
+class EntityOwnershipShardPropsCreator implements ShardPropsCreator {
+ private final String localMemberName;
+
+ EntityOwnershipShardPropsCreator(String localMemberName) {
+ this.localMemberName = localMemberName;
+ }
@Override
public Props newProps(ShardIdentifier shardId, Map<String, String> peerAddresses,
DatastoreContext datastoreContext, SchemaContext schemaContext) {
- return EntityOwnershipShard.props(shardId, peerAddresses, datastoreContext, schemaContext);
+ return EntityOwnershipShard.props(shardId, peerAddresses, datastoreContext, schemaContext, localMemberName);
}
}