<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/mongodb.monitoring.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'class.mongodb-driver-monitoring-commandsubscriber.php',
    1 => 'MongoDB\\Driver\\Monitoring\\CommandSubscriber',
    2 => 'The MongoDB\\Driver\\Monitoring\\CommandSubscriber interface',
  ),
  'up' => 
  array (
    0 => 'mongodb.monitoring.php',
    1 => 'MongoDB\\Driver\\Monitoring',
  ),
  'prev' => 
  array (
    0 => 'mongodb-driver-monitoring-topologyopeningevent.gettopologyid.php',
    1 => 'MongoDB\\Driver\\Monitoring\\TopologyOpeningEvent::getTopologyId',
  ),
  'next' => 
  array (
    0 => 'mongodb-driver-monitoring-commandsubscriber.commandfailed.php',
    1 => 'MongoDB\\Driver\\Monitoring\\CommandSubscriber::commandFailed',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mongodb/mongodb/driver/monitoring/commandsubscriber.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.mongodb-driver-monitoring-commandsubscriber.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.mongodb-driver-monitoring-commandsubscriber" class="reference">

 <h1 class="title">The MongoDB\Driver\Monitoring\CommandSubscriber interface</h1>
 

 <div class="partintro"><p class="verinfo">(mongodb &gt;=1.3.0)</p>


  <div class="section" id="mongodb-driver-monitoring-commandsubscriber.intro">
   <h2 class="title">Giriş</h2>
   <p class="simpara">
    Classes may implement this interface to register an event subscriber that is
    notified for each started, successful, and failed command event. See
    <a href="mongodb.tutorial.apm.php" class="xref">Application Performance Monitoring (APM)</a> for additional information.
   </p>
  </div>


  <div class="section" id="mongodb-driver-monitoring-commandsubscriber.synopsis">
   <h2 class="title">Arayüz Sözdizimi</h2>


   <div class="classsynopsis">
    <span class="ooclass"><strong class="classname"></strong></span>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">MongoDB\Driver\Monitoring\CommandSubscriber</strong>
     </span>

     <span class="oointerface"><span class="modifier">implements</span> 
       <a href="class.mongodb-driver-monitoring-subscriber.php" class="interfacename">MongoDB\Driver\Monitoring\Subscriber</a></span> {</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Yöntemler */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-driver-monitoring-commandsubscriber.commandfailed.php" class="methodname">commandFailed</a></span>(<span class="methodparam"><span class="type"><a href="class.mongodb-driver-monitoring-commandfailedevent.php" class="type MongoDB\Driver\Monitoring\CommandFailedEvent">MongoDB\Driver\Monitoring\CommandFailedEvent</a></span> <code class="parameter">$event</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-driver-monitoring-commandsubscriber.commandstarted.php" class="methodname">commandStarted</a></span>(<span class="methodparam"><span class="type"><a href="class.mongodb-driver-monitoring-commandstartedevent.php" class="type MongoDB\Driver\Monitoring\CommandStartedEvent">MongoDB\Driver\Monitoring\CommandStartedEvent</a></span> <code class="parameter">$event</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-driver-monitoring-commandsubscriber.commandsucceeded.php" class="methodname">commandSucceeded</a></span>(<span class="methodparam"><span class="type"><a href="class.mongodb-driver-monitoring-commandsucceededevent.php" class="type MongoDB\Driver\Monitoring\CommandSucceededEvent">MongoDB\Driver\Monitoring\CommandSucceededEvent</a></span> <code class="parameter">$event</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

   }</div>


  </div>

  <div class="section">
   <h2 class="title">Sürüm Bilgisi</h2>
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Sürüm: </th>
       <th>Açıklama</th>
      </tr>

     </thead>

     <tbody class="tbody">
      
       <tr>
        <td>PECL mongodb 2.0.0</td>
        <td>
         Return types previously declared as tentative are now enforced.
        </td>
       </tr>


      
       <tr>
        <td>PECL mongodb 1.15.0</td>
        <td>
         Return types for methods are declared as tentative on PHP 8.0 and newer,
         triggering deprecation notices in code that implements this interface
         without declaring the appropriate return types. The <code class="code">#[ReturnTypeWillChange]</code>
         attribute can be added to silence the deprecation notice.
        </td>
       </tr>


     </tbody>
    
   </table>

  </div>
 </div>

   





















<h2>İçindekiler</h2><ul class="chunklist chunklist_reference"><li><a href="mongodb-driver-monitoring-commandsubscriber.commandfailed.php">MongoDB\Driver\Monitoring\CommandSubscriber::commandFailed</a> — Notification method for a failed command</li><li><a href="mongodb-driver-monitoring-commandsubscriber.commandstarted.php">MongoDB\Driver\Monitoring\CommandSubscriber::commandStarted</a> — Notification method for a started command</li><li><a href="mongodb-driver-monitoring-commandsubscriber.commandsucceeded.php">MongoDB\Driver\Monitoring\CommandSubscriber::commandSucceeded</a> — Notification method for a successful command</li></ul>
</div>
<?php manual_footer($setup); ?>