Cloud Spanner V1 Client - Class IncludeReplicas (2.6.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
Name Description
data array

Optional. Data for populating the Message object.

↳ replica_selections array<ReplicaSelection>

The directed read replica selector.

↳ auto_failover_disabled bool

If true, Spanner doesn't 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
Type Description
Google\Protobuf\RepeatedField<ReplicaSelection>

setReplicaSelections

The directed read replica selector.

Parameter
Name Description
var array<ReplicaSelection>
Returns
Type Description
$this

getAutoFailoverDisabled

If true, Spanner doesn't 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
Type Description
bool

setAutoFailoverDisabled

If true, Spanner doesn't 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
Name Description
var bool
Returns
Type Description
$this