Reads only from the primary. This is the default choice.
ReadPreference utilities and factories.
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ReadPreference.type
Members list
Type members
Classlikes
Reads from the faster node (e.g. the node which replies faster than all others), regardless its status (primary or secondary).
Reads from the faster node (e.g. the node which replies faster than all others), regardless its status (primary or secondary).
Attributes
- Companion:
- object
- Graph
- Supertypes
Reads only from the primary. This is the default choice.
Reads only from the primary. This is the default choice.
Attributes
- Graph
- Supertypes
- Self type
- Primary.type
Reads from the primary if it is available, or secondaries if it is not.
Reads from the primary if it is available, or secondaries if it is not.
Attributes
- Companion:
- object
- Graph
- Supertypes
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- PrimaryPreferred.type
Reads only from any secondary.
Reads from any secondary, or from the primary if they are not available.
Reads from any secondary, or from the primary if they are not available.
Attributes
- Companion:
- object
- Graph
- Supertypes
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- SecondaryPreferred.type
Value members
Concrete methods
Reads from the fastest node (e.g. the node which replies faster than all others) that has the given tags
, regardless its status (primary or secondary).
Reads from the fastest node (e.g. the node which replies faster than all others) that has the given tags
, regardless its status (primary or secondary).
Attributes
Reads from any node that has the given tags
in the replica set (preferably the primary).
Reads from any node that has the given tags
in the replica set (preferably the primary).
Attributes
Reads from a secondary that has the given tags
in the replica set.
Reads from a secondary that has the given tags
in the replica set.
Attributes
Reads from any node that has the given tags
in the replica set (preferably a secondary).
Reads from any node that has the given tags
in the replica set (preferably a secondary).
Attributes
Concrete fields
Reads from the nearest node (the node which replies faster than all others), regardless its status (primary or secondary).
Reads from the nearest node (the node which replies faster than all others), regardless its status (primary or secondary).
Attributes
Reads from the primary if it is available, or secondaries if it is not.
Reads from any secondary, or from the primary if they are not available.