Interface DirectedReadOptions.IncludeReplicasOrBuilder (6.80.1)

public static interface DirectedReadOptions.IncludeReplicasOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAutoFailoverDisabled()

public abstract boolean getAutoFailoverDisabled()

If true, Spanner will not route requests to a replica outside the include_replicas list when all of the specified replicas are unavailable or unhealthy. Default value is false.

bool auto_failover_disabled = 2;

Returns
Type Description
boolean

The autoFailoverDisabled.

getReplicaSelections(int index)

public abstract DirectedReadOptions.ReplicaSelection getReplicaSelections(int index)

The directed read replica selector.

repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;

Parameter
Name Description
index int
Returns
Type Description
DirectedReadOptions.ReplicaSelection

getReplicaSelectionsCount()

public abstract int getReplicaSelectionsCount()

The directed read replica selector.

repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;

Returns
Type Description
int

getReplicaSelectionsList()

public abstract List<DirectedReadOptions.ReplicaSelection> getReplicaSelectionsList()

The directed read replica selector.

repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;

Returns
Type Description
List<ReplicaSelection>

getReplicaSelectionsOrBuilder(int index)

public abstract DirectedReadOptions.ReplicaSelectionOrBuilder getReplicaSelectionsOrBuilder(int index)

The directed read replica selector.

repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;

Parameter
Name Description
index int
Returns
Type Description
DirectedReadOptions.ReplicaSelectionOrBuilder

getReplicaSelectionsOrBuilderList()

public abstract List<? extends DirectedReadOptions.ReplicaSelectionOrBuilder> getReplicaSelectionsOrBuilderList()

The directed read replica selector.

repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;

Returns
Type Description
List<? extends com.google.spanner.v1.DirectedReadOptions.ReplicaSelectionOrBuilder>