FromIndexGetReplicaStrategy
extends GetReplicaStrategy
in package
Reads from the replica at a given index.
Tags
Table of Contents
- $replicaIndex : int
- $wrap : bool
- fromIndex() : GetReplicaStrategy
- Read from the replica at the given index.
Properties
$replicaIndex
private
int
$replicaIndex
$wrap
private
bool
$wrap
Methods
fromIndex()
Read from the replica at the given index.
public
static fromIndex(int $replicaIndex[, GetReplicaStrategyFromIndexOptions|null $options = null ]) : GetReplicaStrategy
Parameters
- $replicaIndex : int
-
the replica to read from, one of the ReplicaIndex constants
- $options : GetReplicaStrategyFromIndexOptions|null = null
-
the options for the strategy