Documentation

GetAnyReplicaOptions
in package

Table of Contents

$readPreference  : string
$timeoutMilliseconds  : int|null
$transcoder  : Transcoder
__construct()  : mixed
build()  : GetAnyReplicaOptions
Static helper to keep code more readable
getTranscoder()  : Transcoder
Returns associated transcoder.
readPreference()  : GetAnyReplicaOptions
Choose how the replica nodes will be selected. By default, it has no preference and will select any available replica, but it is possible to prioritize or restrict to only nodes in local server group
timeout()  : GetAnyReplicaOptions
Sets the operation timeout in milliseconds.
transcoder()  : GetAnyReplicaOptions
Associate custom transcoder with the request.

Properties

Methods

readPreference()

Choose how the replica nodes will be selected. By default, it has no preference and will select any available replica, but it is possible to prioritize or restrict to only nodes in local server group

public readPreference(string $readPreference) : GetAnyReplicaOptions
Parameters
$readPreference : string
Tags
see
ReadPreference
since
4.2.6
Return values
GetAnyReplicaOptions

        

Search results