Package com.couchbase.client.java.kv
Class GetReplicaStrategy
java.lang.Object
com.couchbase.client.java.kv.GetReplicaStrategy
- Direct Known Subclasses:
GetReplicaStrategy.FromIndex
Strategy for selecting a replica to read from.
Create a new instance by calling one of the static factory methods.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GetReplicaStrategyany()Returns a strategy that reads from a single available replica.static GetReplicaStrategy.FromIndexfromIndex(ReplicaIndex index) Returns a strategy that reads from the specified replica.abstract CoreGetReplicaStrategytoCore()
-
Constructor Details
-
GetReplicaStrategy
public GetReplicaStrategy()
-
-
Method Details
-
fromIndex
Returns a strategy that reads from the specified replica.- See Also:
-
any
Returns a strategy that reads from a single available replica.The selection algorithm is unspecified.
-
toCore
-