public RegionConfig( final RegionDef regionDef, final List<Integer> pipelineStartIndices, final int replicaCount) { checkArgument(regionDef.getRegionType() == STATEFUL ? replicaCount == 1 : replicaCount > 0); this.regionDef = regionDef; this.replicaCount = replicaCount; this.pipelineStartIndices = pipelineStartIndices; }