array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'mongodb-driver-monitoring-sdamsubscriber.topologychanged.php', 1 => 'MongoDB\\Driver\\Monitoring\\SDAMSubscriber::topologyChanged', ), 'up' => array ( 0 => 'class.mongodb-driver-monitoring-sdamsubscriber.php', 1 => 'MongoDB\\Driver\\Monitoring\\SDAMSubscriber', ), 'prev' => array ( 0 => 'mongodb-driver-monitoring-sdamsubscriber.serveropening.php', 1 => 'MongoDB\\Driver\\Monitoring\\SDAMSubscriber::serverOpening', ), 'next' => array ( 0 => 'mongodb-driver-monitoring-sdamsubscriber.topologyclosed.php', 1 => 'MongoDB\\Driver\\Monitoring\\SDAMSubscriber::topologyClosed', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/monitoring/sdamsubscriber/topologychanged.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(mongodb >=1.13.0)
MongoDB\Driver\Monitoring\SDAMSubscriber::topologyChanged — Notification method for a topology description change
$event
): voidIf the subscriber has been registered, the driver will call this method when the topology's description has changed.
event
(MongoDB\Driver\Monitoring\TopologyChangedEvent)An event object encapsulating information about the changed topology description.
没有返回值。