MongoDB\Driver\Manager
PHP Manual

MongoDB\Driver\Manager::selectServer

(Não há informação de versão disponível, talvez apenas no SVN)

MongoDB\Driver\Manager::selectServerPreselect MongoDB node

Descrição

final public MongoDB\Driver\Server MongoDB\Driver\Manager::selectServer ( MongoDB\Driver\ReadPreference $readPreference )

Preselect a MongoDB node based on provided readPreference. This can be useful to gurantee a command runs on a specific server when operating in a mixed version cluster.

Parâmetros

readPreference

Optionally, a MongoDB\Driver\ReadPreference to route the command to. If none given, defaults to the Read Preferences set by the MongoDB Connection URI.

Valor Retornado

Returns an instance of MongoDB\Driver\Server ready for action.


MongoDB\Driver\Manager
PHP Manual