Constructor and Description |
---|
DefaultPartition(short master,
short[] replicas)
Creates a new
DefaultPartition . |
Modifier and Type | Method and Description |
---|---|
short |
master()
Returns the master node index for this partition.
|
short |
replica(int num)
Returns the replica index for this partition.
|
String |
toString() |
public DefaultPartition(short master, short[] replicas)
Creates a new DefaultPartition
.
master
- the array index of the masterreplicas
- the array indexes of the replicas.Copyright © 2016 Couchbase, Inc.. All rights reserved.