« MongoDB\Driver\Server::isPrimary
MongoDB\Driver\ServerDescription »

MongoDB\Driver\Server::isSecondary

(mongodb >=1.0.0)

MongoDB\Driver\Server::isSecondary — Checks if this server is a secondary member of a replica set

説明

final public function MongoDB\Driver\Server::isSecondary(): bool

Returns whether this server is a » secondary member of a replica set.

パラメータ

この関数にはパラメータはありません。

戻り値

Returns true if this server is a secondary member of a replica set, and false otherwise.

エラー / 例外

参考

関連キーワード:
MongoDB   Driver   server   Server   secondary   member   replica   Checks   isSecondary   isPrimary   ServerDescription   mongodb   final   whether   otherwise   Throws   Exception   InvalidArgumentException   argument   parsing   errors   参考   getInfo   information   describing
関連する関数・ページ:
mongodb-driver-server.isprimary   mongodb-driver-server.ishidden   mongodb-driver-server.ispassive   mongodb-driver-server.isarbiter   mongodb-driver-server.gettags   class.mongodb-driver-server