MongoDB\Driver\ReadPreference::getHedge

Returns the ReadPreference's "hedge" option

Description

final public objectnull MongoDB\Driver\ReadPreference::getHedge()

Parameters

This function has no parameters.

Return Values

Returns the ReadPreference's "hedge" option.

Errors/Exceptions

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.