Package com.google.spanner.v1
Interface DirectedReadOptions.IncludeReplicasOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DirectedReadOptions.IncludeReplicas,DirectedReadOptions.IncludeReplicas.Builder
- Enclosing class:
- DirectedReadOptions
public static interface DirectedReadOptions.IncludeReplicasOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIf true, Spanner will not route requests to a replica outside the include_replicas list when all of the specified replicas are unavailable or unhealthy.getReplicaSelections(int index) The directed read replica selector.intThe directed read replica selector.The directed read replica selector.getReplicaSelectionsOrBuilder(int index) The directed read replica selector.The directed read replica selector.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getReplicaSelectionsList
List<DirectedReadOptions.ReplicaSelection> getReplicaSelectionsList()The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1; -
getReplicaSelections
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1; -
getReplicaSelectionsCount
int getReplicaSelectionsCount()The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1; -
getReplicaSelectionsOrBuilderList
List<? extends DirectedReadOptions.ReplicaSelectionOrBuilder> getReplicaSelectionsOrBuilderList()The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1; -
getReplicaSelectionsOrBuilder
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1; -
getAutoFailoverDisabled
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:
- The autoFailoverDisabled.
-