« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 11 for maxStalenessSeconds (0.002 sec.)
Returns the ReadPreference's "maxStalenessSeconds" option 11860
« MongoDB\Driver\ReadPreference::getHedge MongoDB\Driver\ReadPreference::getMode » PHP Manual MongoDB\Driver\ReadPreference Returns the ReadPreference's "maxStalenessSeconds" option 検索 MongoDB\Driver\ReadPreference::getMaxStalenessSeconds ... (mongodb >=1.2.0) MongoDB\Driver\ReadPreference::getMaxStalenessSeconds — Returns the ReadPreference's "maxStalenessSeconds" option 説明 final public function MongoDB\Driver\ReadPreference::getM ... axStalenessSeconds (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the ReadPreference's "maxStalenessSeconds" option. If no max staleness has been specified, MongoDB\Driver\ReadPreference::NO_MAX_STALENESS will be returned. エラー ... ows MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\ReadPreference::getMaxStalenessSeconds() example <?php $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreference :: SECONDARY ); var_dump ( $rp -> ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.getmaxstalenessseco...
Returns the ReadPreference's "maxStalenessSeconds" option 11860
« MongoDB\Driver\ReadPreference::getHedge MongoDB\Driver\ReadPreference::getMode » PHP Manual MongoDB\Driver\ReadPreference Returns the ReadPreference's "maxStalenessSeconds" option 検索 MongoDB\Driver\ReadPreference::getMaxStalenessSeconds ... (mongodb >=1.2.0) MongoDB\Driver\ReadPreference::getMaxStalenessSeconds — Returns the ReadPreference's "maxStalenessSeconds" option 説明 final public function MongoDB\Driver\ReadPreference::getM ... axStalenessSeconds (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the ReadPreference's "maxStalenessSeconds" option. If no max staleness has been specified, MongoDB\Driver\ReadPreference::NO_MAX_STALENESS will be returned. エラー ... ows MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\ReadPreference::getMaxStalenessSeconds() example <?php $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreference :: SECONDARY ); var_dump ( $rp -> ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.getmaxstalenessseco...
The MongoDB\Driver\ReadPreference class 9548
« MongoDB\Driver\WriteConcern::isDefault MongoDB\Driver\ReadPreference::bsonSerialize » PHP Manual MongoDB\Driver The MongoDB\Driver\ReadPreference class 検索 The MongoDB\Driver\ReadPreference class (mongodb >=1.0.0) はじめに クラス概要 fin ... e , Serializable { /* プロパティ */ public readonly string $ mode ; public readonly ? array $ tags ; public readonly int $ maxStalenessSeconds ; public readonly ? object $ hedge ; /* 定数 */ const string PRIMARY = primary ; const string PRIMARY_PREFERRED = primaryP ... , ? array $tagSets = null , ? array $options = null ) final public function getHedge (): ? object final public function getMaxStalenessSeconds (): int final public function getMode (): int final public function getModeString (): string final public function getTagS ... (e.g. "primary" , "secondary" ). tags The tag set list used by the read preference, or null if no tag sets were specified. maxStalenessSeconds The maximum staleness in seconds for reads, or MongoDB\Driver\ReadPreference::NO_MAX_STALENESS if no maximum staleness was ...
https://man.mtool.work/php/8.3/class.mongodb-driver-readpreference.html
The MongoDB\Driver\ReadPreference class 9548
« MongoDB\Driver\WriteConcern::isDefault MongoDB\Driver\ReadPreference::bsonSerialize » PHP Manual MongoDB\Driver The MongoDB\Driver\ReadPreference class 検索 The MongoDB\Driver\ReadPreference class (mongodb >=1.0.0) はじめに クラス概要 fin ... e , Serializable { /* プロパティ */ public readonly string $ mode ; public readonly ? array $ tags ; public readonly int $ maxStalenessSeconds ; public readonly ? object $ hedge ; /* 定数 */ const string PRIMARY = primary ; const string PRIMARY_PREFERRED = primaryP ... , ? array $tagSets = null , ? array $options = null ) final public function getHedge (): ? object final public function getMaxStalenessSeconds (): int final public function getMode (): int final public function getModeString (): string final public function getTagS ... (e.g. "primary" , "secondary" ). tags The tag set list used by the read preference, or null if no tag sets were specified. maxStalenessSeconds The maximum staleness in seconds for reads, or MongoDB\Driver\ReadPreference::NO_MAX_STALENESS if no maximum staleness was ...
https://man.mtool.work/php/8.3/class.mongodb-driver-readpreference.html
Create a new ReadPreference 9264
« MongoDB\Driver\ReadPreference::bsonSerialize MongoDB\Driver\ReadPreference::getHedge » PHP Manual MongoDB\Driver\ReadPreference Create a new ReadPreference 検索 MongoDB\Driver\ReadPreference::__construct (mongodb >=1.0.0) MongoDB\Driver\R ... true] , or explicitly disabling server hedged reads for the "nearest" read preference by specifying ['enabled' => false] . maxStalenessSeconds int Specifies a maximum replication lag, or "staleness", for reads from secondaries. When a secondary's estimated stalenes ... malformed (i.e. not an array of zero or more documents). Throws MongoDB\Driver\Exception\InvalidArgumentException if the "maxStalenessSeconds" option is provided for a primary read preference or is out of range. 変更履歴 バージョン 説明 PECL mongodb 2.0.0 Passing ... option for MongoDB\Driver\Manager::__construct() . PECL mongodb 1.2.0 Added a third options argument, which supports the "maxStalenessSeconds" option. 例 例1 MongoDB\Driver\ReadPreference::__construct() example <?php /* Prefer a secondary node but fall back to a p ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.construct.html
Returns an object for BSON serialization 8819
« MongoDB\Driver\ReadPreference MongoDB\Driver\ReadPreference::__construct » PHP Manual MongoDB\Driver\ReadPreference Returns an object for BSON serialization 検索 MongoDB\Driver\ReadPreference::bsonSerialize (mongodb >=1.2.0) MongoDB\Drive ... e and max staleness <?php $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreference :: SECONDARY , null , [ 'maxStalenessSeconds' => 120 ] ); var_dump ( $rp -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $rp )-> toRelaxedExtended ... JSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (2) { ["mode"]=> string(9) "secondary" ["maxStalenessSeconds"]=> int(120) } { "mode" : "secondary", "maxStalenessSeconds" : 120 } 参考 MongoDB\BSON\Serializable::bsonSerialize() - Pro ... ialize stdClass mode secondary serialization primary read preference dump Document fromPHP toRelaxedExtendedJSON reporting maxStalenessSeconds tags construct mongodb final serializing Throws Exception InvalidArgumentException ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.bsonserialize.html
Create a new ReadPreference 8748
« MongoDB\Driver\ReadPreference::bsonSerialize MongoDB\Driver\ReadPreference::getHedge » PHP Manual MongoDB\Driver\ReadPreference Create a new ReadPreference 検索 MongoDB\Driver\ReadPreference::__construct (mongodb >=1.0.0) MongoDB\Driver\R ... true] , or explicitly disabling server hedged reads for the "nearest" read preference by specifying ['enabled' => false] . maxStalenessSeconds int Specifies a maximum replication lag, or "staleness", for reads from secondaries. When a secondary's estimated stalenes ... malformed (i.e. not an array of zero or more documents). Throws MongoDB\Driver\Exception\InvalidArgumentException if the "maxStalenessSeconds" option is provided for a primary read preference or is out of range. 変更履歴 バージョン 説明 PECL mongodb 2.0.0 Passing ... option for MongoDB\Driver\Manager::__construct() . PECL mongodb 1.2.0 Added a third options argument, which supports the "maxStalenessSeconds" option. 例 例1 MongoDB\Driver\ReadPreference::__construct() example <?php /* Prefer a secondary node but fall back to a p ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.construct.html
Returns an object for BSON serialization 8179
« MongoDB\Driver\ReadPreference MongoDB\Driver\ReadPreference::__construct » PHP Manual MongoDB\Driver\ReadPreference Returns an object for BSON serialization 検索 MongoDB\Driver\ReadPreference::bsonSerialize (mongodb >=1.2.0) MongoDB\Drive ... e and max staleness <?php $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreference :: SECONDARY , null , [ 'maxStalenessSeconds' => 120 ] ); var_dump ( $rp -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $rp )-> toRelaxedExtended ... JSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (2) { ["mode"]=> string(9) "secondary" ["maxStalenessSeconds"]=> int(120) } { "mode" : "secondary", "maxStalenessSeconds" : 120 } 参考 MongoDB\BSON\Serializable::bsonSerialize() - Pro ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.bsonserialize.html
Create new MongoDB Manager 6792
« MongoDB\Driver\Manager::addSubscriber MongoDB\Driver\Manager::createClientEncryption » PHP Manual MongoDB\Driver\Manager Create new MongoDB Manager 検索 MongoDB\Driver\Manager::__construct (mongodb >=1.0.0) MongoDB\Driver\Manager::__const ... d to change the maximum number of retries when a SystemOverloadedError occurs. Must be a positive integer; defaults to 2 . maxStalenessSeconds int Corresponds to the read preference's "maxStalenessSeconds" . Specifies, in seconds, how stale a secondary can be befor ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.construct.html
Create new MongoDB Manager 6792
« MongoDB\Driver\Manager::addSubscriber MongoDB\Driver\Manager::createClientEncryption » PHP Manual MongoDB\Driver\Manager Create new MongoDB Manager 検索 MongoDB\Driver\Manager::__construct (mongodb >=1.0.0) MongoDB\Driver\Manager::__const ... d to change the maximum number of retries when a SystemOverloadedError occurs. Must be a positive integer; defaults to 2 . maxStalenessSeconds int Corresponds to the read preference's "maxStalenessSeconds" . Specifies, in seconds, how stale a secondary can be befor ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.construct.html
PREV 1 2 NEXT