Documentation

ReadPreference

Select read preference (or affinity) for the replica APIs such as:

Tags
see
Collection::getAllReplicas()
see
Collection::getAnyReplica()
see
Collection::lookupInAllReplicas()
see
Collection::lookupInAnyReplica()
see
TransactionAttemptContext::getReplicaFromPreferredServerGroup()
see
https://docs.couchbase.com/server/current/manage/manage-groups/manage-groups.html

Table of Contents

NO_PREFERENCE  = "noPreference"
Do not enforce any filtering for replica set.
SELECTED_SERVER_GROUP  = "selectedServerGroup"
Exclude any nodes that do not belong to local group selected during cluster instantiation with @see ClusterOptions::preferredServerGroup()

Constants

NO_PREFERENCE

Do not enforce any filtering for replica set.

public mixed NO_PREFERENCE = "noPreference"

SELECTED_SERVER_GROUP

Exclude any nodes that do not belong to local group selected during cluster instantiation with @see ClusterOptions::preferredServerGroup()

public mixed SELECTED_SERVER_GROUP = "selectedServerGroup"

        

Search results