- Preconditions.checkNotNull(shardName, "shardName should not be null");
-
- this.shardName = shardName;
- this.waitUntilInitialized = waitUntilInitialized;
+ public FindPrimary(final String shardName, final boolean waitUntilReady) {
+ this.shardName = requireNonNull(shardName, "shardName should not be null");
+ this.waitUntilReady = waitUntilReady;