- this.datastoreContext = datastoreContext;
- this.txnDispatcherPath = txnDispatcherPath;
- this.shardMBean = shardMBean;
- this.actorContext = actorContext;
- this.shardActor = shardActor;
+ this.datastoreContext = Preconditions.checkNotNull(datastoreContext);
+ this.txnDispatcherPath = Preconditions.checkNotNull(txnDispatcherPath);
+ this.shardMBean = Preconditions.checkNotNull(shardMBean);
+ this.actorContext = Preconditions.checkNotNull(actorContext);
+ this.shardActor = Preconditions.checkNotNull(shardActor);
+ this.shardName = Preconditions.checkNotNull(shardName);