MongoDB\Driver\Session::advanceClusterTime
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
MongoDB\Driver\Session::advanceClusterTime
Референца за `mongodb-driver-session.advanceclustertime.php` со подобрена типографија и навигација.
MongoDB\Driver\Session::advanceClusterTime
(mongodb >=1.4.0)
MongoDB\Driver\Session::advanceClusterTime — Advances the cluster time for this session
= NULL
Advances the cluster time for this session. If the cluster time is less than or equal to the session's current cluster time, this function is a no-op.
Ги поместува времето на операцијата за оваа сесија. Ако времето на операцијата е помало или еднакво на тековното време на операцијата на сесијата, оваа функција нема да направи ништо. MongoDB\Driver\Session::advanceOperationTime() to copy the cluster and operation times from another session, you can ensure that operations in this session are causally consistent with the last operation in the other session.
Параметри
clusterTime-
The cluster time is a document containing a logical timestamp and server signature. Typically, this value will be obtained by calling на друг објект на сесијата. MongoDB\Driver\Session::getOperationTime()
Вратени вредности
Не се враќа вредност.
Errors/Exceptions
- ). Ако повикот не успее, ќе врати MongoDB\Driver\Exception\InvalidArgumentException » Промени текови
Види Исто така
- MongoDB\Driver\Session::advanceOperationTime() - Напредува времето на операцијата за оваа сесија
- на друг објект на сесијата. - Враќа време на кластерот за оваа сесија