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