Package com.couchbase.client.core.config
Class DefaultPartition
- java.lang.Object
-
- com.couchbase.client.core.config.DefaultPartition
-
-
Constructor Summary
Constructors Constructor Description DefaultPartition(short master, short[] replicas)
Creates a newDefaultPartition
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
master()
Returns the master node index for this partition.short
replica(int num)
Returns the replica index for this partition.String
toString()
-
-
-
Constructor Detail
-
DefaultPartition
public DefaultPartition(short master, short[] replicas)
Creates a newDefaultPartition
.- Parameters:
master
- the array index of the masterreplicas
- the array indexes of the replicas.
-
-