array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'mongodb-driver-monitoring-sdamsubscriber.topologyclosed.php', 1 => 'MongoDB\\Driver\\Monitoring\\SDAMSubscriber::topologyClosed', 2 => 'Notification method for closing the topology', ), 'up' => array ( 0 => 'class.mongodb-driver-monitoring-sdamsubscriber.php', 1 => 'MongoDB\\Driver\\Monitoring\\SDAMSubscriber', ), 'prev' => array ( 0 => 'mongodb-driver-monitoring-sdamsubscriber.topologychanged.php', 1 => 'MongoDB\\Driver\\Monitoring\\SDAMSubscriber::topologyChanged', ), 'next' => array ( 0 => 'mongodb-driver-monitoring-sdamsubscriber.topologyopening.php', 1 => 'MongoDB\\Driver\\Monitoring\\SDAMSubscriber::topologyOpening', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/monitoring/sdamsubscriber/topologyclosed.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

MongoDB\Driver\Monitoring\SDAMSubscriber::topologyClosed

(mongodb >=1.13.0)

MongoDB\Driver\Monitoring\SDAMSubscriber::topologyClosedNotification method for closing the topology

説明

abstract public MongoDB\Driver\Monitoring\SDAMSubscriber::topologyClosed(MongoDB\Driver\Monitoring\TopologyClosedEvent $event): void

If the subscriber is registered, this method is called when the topology is closed.

注意: Due to the driver's connection handling and persistence behavior, this event can only be observed when a MongoDB\Driver\Manager is created with the "disableClientPersistence" driver option and freed before request shutdown (RSHUTDOWN).

パラメータ

event (MongoDB\Driver\Monitoring\TopologyClosedEvent)

An event object encapsulating information about the closed topology.

戻り値

値を返しません。

エラー / 例外

参考