- String txnDispatcherPath, ActorRef shardActor, UntypedActorContext actorContext, ShardStats shardMBean) {
- this.dataTree = Preconditions.checkNotNull(dataTree);
- this.datastoreContext = datastoreContext;
- this.txnDispatcherPath = txnDispatcherPath;
- this.shardMBean = shardMBean;
- this.actorContext = actorContext;
- this.shardActor = shardActor;
+ String txnDispatcherPath, ActorRef shardActor, ActorContext actorContext, ShardStats shardMBean,
+ String shardName) {
+ this.dataTree = requireNonNull(dataTree);
+ this.datastoreContext = requireNonNull(datastoreContext);
+ this.txnDispatcherPath = requireNonNull(txnDispatcherPath);
+ this.shardMBean = requireNonNull(shardMBean);
+ this.actorContext = requireNonNull(actorContext);
+ this.shardActor = requireNonNull(shardActor);
+ this.shardName = requireNonNull(shardName);