Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class GetReplicaStrategy

Chooses the one replica that GetReplicaAsync(string, GetReplicaStrategy, GetReplicaOptions?) reads from.

Inheritance
object
GetReplicaStrategy
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.KeyValue
Assembly: Couchbase.NetClient.dll
Syntax
[InterfaceStability(Level.Uncommitted)]
public abstract class GetReplicaStrategy

Methods

View Source

FromIndex(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?).

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.