ReadPreference
in
Select read preference (or affinity) for the replica APIs such as:
Tags
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"