Cloud Spanner V1 Client - Class IncludeReplicas (1.76.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class IncludeReplicas.

An IncludeReplicas contains a repeated set of ReplicaSelection which indicates the order in which replicas should be considered.

Generated from protobuf message google.spanner.v1.DirectedReadOptions.IncludeReplicas

Namespace

Google \ Cloud \ Spanner \ V1 \ DirectedReadOptions

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ replica_selections array<Google\Cloud\Spanner\V1\DirectedReadOptions\ReplicaSelection>

The directed read replica selector.

↳ auto_failover_disabled bool

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.

getReplicaSelections

The directed read replica selector.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setReplicaSelections

The directed read replica selector.

Parameter
NameDescription
var array<Google\Cloud\Spanner\V1\DirectedReadOptions\ReplicaSelection>
Returns
TypeDescription
$this

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.

Returns
TypeDescription
bool

setAutoFailoverDisabled

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.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this