« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 12 for staleness (0.002 sec.)
The MongoDB\Driver\ReadPreference class 12275
« 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 ... 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 = p ... RY = secondary ; const string SECONDARY_PREFERRED = secondaryPreferred ; const string NEAREST = nearest ; const int NO_MAX_STALENESS = -1 ; const int SMALLEST_MAX_STALENESS_SECONDS = 90 ; /* メソッド */ final public function bsonSerialize (): stdClass fin ... 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 ...
https://man.mtool.work/php/8.3/class.mongodb-driver-readpreference.html
The MongoDB\Driver\ReadPreference class 12239
« 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 ... 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 = p ... RY = secondary ; const string SECONDARY_PREFERRED = secondaryPreferred ; const string NEAREST = nearest ; const int NO_MAX_STALENESS = -1 ; const int SMALLEST_MAX_STALENESS_SECONDS = 90 ; /* メソッド */ final public function bsonSerialize (): stdClass fin ... 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 ...
https://man.mtool.work/php/8.3/class.mongodb-driver-readpreference.html
Returns the ReadPreference's "maxStalenessSeconds" option 9781
« 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\ReadPreferenc ... e::getMaxStalenessSeconds (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the ReadPreference's "maxStalenessSeconds" o ... ption. If no max staleness has been specified, MongoDB\Driver\ReadPreference::NO_MAX_STALENESS will be returned. エラー / 例外 Throws MongoDB\Driver\ ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.getmaxstalenessseco...
Returns the ReadPreference's "maxStalenessSeconds" option 9233
« 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\ReadPreferenc ... e::getMaxStalenessSeconds (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the ReadPreference's "maxStalenessSeconds" o ... ption. If no max staleness has been specified, MongoDB\Driver\ReadPreference::NO_MAX_STALENESS will be returned. エラー / 例外 Throws MongoDB\Driver\ ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.getmaxstalenessseco...
Create a new ReadPreference 9091
« 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 ... e] , 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 s ... taleness exceeds this value, the driver stops using it for read operations. If specified, the max staleness must be a signed 32-bit integer greater than or equal to MongoDB\Driver\ReadPreference::SMALLEST_MAX_STALENESS_SECONDS . D ... efaults to MongoDB\Driver\ReadPreference::NO_MAX_STALENESS , which means that the driver will not consider a secondary's lag when choosing where to direct a read operation. This opt ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.construct.html
Create a new ReadPreference 9091
« 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 ... e] , 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 s ... taleness exceeds this value, the driver stops using it for read operations. If specified, the max staleness must be a signed 32-bit integer greater than or equal to MongoDB\Driver\ReadPreference::SMALLEST_MAX_STALENESS_SECONDS . D ... efaults to MongoDB\Driver\ReadPreference::NO_MAX_STALENESS , which means that the driver will not consider a secondary's lag when choosing where to direct a read operation. This opt ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.construct.html
Create new MongoDB Manager 7570
« 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 ... o 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 b ... e before the client stops using it for read operations. By default, there is no maximum staleness and clients will not consider a secondary's lag when choosing where to direct a read operation. For details, see MongoDB\D ... river\ReadPreference . If specified, the max staleness must be a signed 32-bit integer greater than or equal to MongoDB\Driver\ReadPreference::SMALLEST_MAX_STALENESS_SECONDS (i. ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.construct.html
Create new MongoDB Manager 7570
« 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 ... o 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 b ... e before the client stops using it for read operations. By default, there is no maximum staleness and clients will not consider a secondary's lag when choosing where to direct a read operation. For details, see MongoDB\D ... river\ReadPreference . If specified, the max staleness must be a signed 32-bit integer greater than or equal to MongoDB\Driver\ReadPreference::SMALLEST_MAX_STALENESS_SECONDS (i. ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.construct.html
Returns an object for BSON serialization 7464
« 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 ... , "use" : "reporting" }, { } ] } 例3 MongoDB\Driver\ReadPreference::bsonSerialize() with secondary read preference and max staleness <?php $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreference :: SECONDARY , null , [ 'maxStalenessSeconds ... JSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (2) { ["mode"]=> string(9) "secondary" ["maxStalenessSeconds"]=> int(120) } { "mode" : "secondary", "maxStalenessSeconds" : 120 } 参考 MongoDB\BSON\Serializable::bsonSerialize( ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.bsonserialize.html
Returns an object for BSON serialization 7464
« 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 ... , "use" : "reporting" }, { } ] } 例3 MongoDB\Driver\ReadPreference::bsonSerialize() with secondary read preference and max staleness <?php $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreference :: SECONDARY , null , [ 'maxStalenessSeconds ... JSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (2) { ["mode"]=> string(9) "secondary" ["maxStalenessSeconds"]=> int(120) } { "mode" : "secondary", "maxStalenessSeconds" : 120 } 参考 MongoDB\BSON\Serializable::bsonSerialize( ... ize 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
PREV 1 2 NEXT