Class GetReplicaStrategy
Chooses the one replica that GetReplicaAsync(string, GetReplicaStrategy, GetReplicaOptions?) reads from.
Inherited Members
Namespace: Couchbase.KeyValue
Assembly: Couchbase.NetClient.dll
Syntax
[InterfaceStability(Level.Uncommitted)]
public abstract class GetReplicaStrategy
Methods
View SourceFromIndex(ReplicaIndex, GetReplicaStrategyFromIndexOptions?)
Reads from the replica at the given position.
Declaration
public static GetReplicaStrategy FromIndex(ReplicaIndex index, GetReplicaStrategyFromIndexOptions? options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ReplicaIndex | index | Which replica to read from. |
| GetReplicaStrategyFromIndexOptions | options | Any optional parameters. |
Returns
| Type | Description |
|---|---|
| GetReplicaStrategy | A GetReplicaStrategy to pass to GetReplicaAsync(string, GetReplicaStrategy, GetReplicaOptions?). |