Package com.couchbase.client.core.config
Interface Partition
- All Known Implementing Classes:
DefaultPartition
public interface Partition
-
Method Summary
-
Method Details
-
master
short master()Returns the master node index for this partition.- Returns:
- the master node index.
-
replica
short replica(int num)Returns the replica index for this partition.- Parameters:
num
- number of replica.- Returns:
- the replica node index, -1 if not set.
-