|
MongoDB\Driver\Session::getServerReturns the server to which this session is pinned 説明
final public MongoDB\Driver\Servernull MongoDB\Driver\Session::getServer()
Returns the MongoDB\Driver\Server to which this
session is pinned. If the session is not pinned to a server, Session pinning is primarily used for sharded transactions, as all commands within a sharded transaction must be sent to the same mongos instance. This method is intended to be used by libraries built atop the extension to allow use of a pinned server instead of invoking server selection. パラメータこの関数にはパラメータはありません。 戻り値
Returns the MongoDB\Driver\Server to which this
session is pinned, or エラー / 例外
|