Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 10203

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Advances the operation time for this session</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongodb-driver-session.advanceclustertime.html">MongoDB\Driver\Session::advanceClusterTime</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongodb-driver-session.committransaction.html">MongoDB\Driver\Session::commitTransaction</a></div>
 <div class="up"><a href="class.mongodb-driver-session.html">MongoDB\Driver\Session</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongodb-driver-session.advanceoperationtime" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\Driver\Session::advanceOperationTime</h1>
  <p class="verinfo">(mongodb &gt;=1.4.0)</p><p class="refpurpose"><span class="refname">MongoDB\Driver\Session::advanceOperationTime</span> &mdash; <span class="dc-title">Advances the operation time for this session</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-driver-session.advanceoperationtime-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>MongoDB\Driver\Session::advanceOperationTime</strong></span>
    ( <span class="methodparam"><span class="type"><span class="type MongoDB\BSON\TimestampInterface">MongoDB\BSON\TimestampInterface</span></span> <code class="parameter">$operationTime</code></span>
   )</div>

  <p class="para rdfs-comment">
   Advances the operation time for this session. If the operation time is less
   than or equal to the session&#039;s current operation time, this function is a
   no-op.
  </p>
  <p class="para">
   By using this method in conjunction with
   <span class="methodname"><a href="mongodb-driver-session.advanceclustertime.html" class="methodname">MongoDB\Driver\Session::advanceClusterTime()</a></span> to copy
   the operation and cluster times from another session, you can ensure that
   operations in this session are causally consistent with the last operation in
   the other session.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-driver-session.advanceoperationtime-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   
    <dt>
<code class="parameter">operationTime</code></dt>

    <dd>

     <p class="para">
      The operation time is a logical timestamp. Typically, this value will be
      obtained by calling
      <span class="methodname"><a href="mongodb-driver-session.getoperationtime.html" class="methodname">MongoDB\Driver\Session::getOperationTime()</a></span> on
      another session object.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-driver-session.advanceoperationtime-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   No value is returned.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-driver-session.advanceoperationtime-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <ul class="simplelist">
   <li class="member">Throws <a href="class.mongodb-driver-exception-invalidargumentexception.html" class="classname">MongoDB\Driver\Exception\InvalidArgumentException</a> on argument parsing errors.</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-driver-session.advanceoperationtime-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member"><span class="methodname"><a href="mongodb-driver-session.advanceclustertime.html" class="methodname" rel="rdfs-seeAlso">MongoDB\Driver\Session::advanceClusterTime()</a> - Advances the cluster time for this session</span></li>
   <li class="member"><span class="methodname"><a href="mongodb-driver-session.getclustertime.html" class="methodname" rel="rdfs-seeAlso">MongoDB\Driver\Session::getClusterTime()</a> - Returns the cluster time for this session</span></li>
  </ul>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongodb-driver-session.advanceclustertime.html">MongoDB\Driver\Session::advanceClusterTime</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongodb-driver-session.committransaction.html">MongoDB\Driver\Session::commitTransaction</a></div>
 <div class="up"><a href="class.mongodb-driver-session.html">MongoDB\Driver\Session</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>