Class NodeIndexCalculator
java.lang.Object
com.couchbase.client.core.service.kv.NodeIndexCalculator
-
Constructor Summary
ConstructorDescriptionNodeIndexCalculator
(CoreReadPreference readPreference, CouchbaseBucketConfig topology, CoreContext coreContext) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canUseNode
(String documentId, int replicaIndex, boolean isActive) boolean
canUseNodeForActive
(String documentId) boolean
canUseNodeForReplica
(String documentId, int replicaIndex) boolean
check
(int nodeIndex)
-
Constructor Details
-
NodeIndexCalculator
public NodeIndexCalculator(CoreReadPreference readPreference, CouchbaseBucketConfig topology, CoreContext coreContext)
-
-
Method Details
-
canUseNode
-
canUseNodeForActive
-
canUseNodeForReplica
-
check
public boolean check(int nodeIndex)
-