<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mongodb-driver-session.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'mongodb-driver-session.advanceoperationtime.php',
    1 => 'MongoDB\\Driver\\Session::advanceOperationTime',
    2 => 'Advances the operation time for this session',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-driver-session.php',
    1 => 'MongoDB\\Driver\\Session',
  ),
  'prev' => 
  array (
    0 => 'mongodb-driver-session.advanceclustertime.php',
    1 => 'MongoDB\\Driver\\Session::advanceClusterTime',
  ),
  'next' => 
  array (
    0 => 'mongodb-driver-session.committransaction.php',
    1 => 'MongoDB\\Driver\\Session::commitTransaction',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mongodb/mongodb/driver/session/advanceoperationtime.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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="methodname"><strong>MongoDB\Driver\Session::advanceOperationTime</strong></span>(<span class="methodparam"><span class="type"><a href="class.mongodb-bson-timestampinterface.php" class="type MongoDB\BSON\TimestampInterface">MongoDB\BSON\TimestampInterface</a></span> <code class="parameter">$operationTime</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="simpara">
   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="simpara">
   By using this method in conjunction with
   <span class="methodname"><a href="mongodb-driver-session.advanceclustertime.php" 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>
     <span class="simpara">
      The operation time is a logical timestamp. Typically, this value will be
      obtained by calling
      <span class="methodname"><a href="mongodb-driver-session.getoperationtime.php" class="methodname">MongoDB\Driver\Session::getOperationTime()</a></span> on
      another session object.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-driver-session.advanceoperationtime-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   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>Throws <span class="classname"><a href="class.mongodb-driver-exception-invalidargumentexception.php" class="classname">MongoDB\Driver\Exception\InvalidArgumentException</a></span> 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><span class="methodname"><a href="mongodb-driver-session.advanceclustertime.php" class="methodname" rel="rdfs-seeAlso">MongoDB\Driver\Session::advanceClusterTime()</a> - Advances the cluster time for this session</span></li>
   <li><span class="methodname"><a href="mongodb-driver-session.getclustertime.php" class="methodname" rel="rdfs-seeAlso">MongoDB\Driver\Session::getClusterTime()</a> - Returns the cluster time for this session</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>