(mongodb >=1.13.0)
MongoDB\Driver\Monitoring\SDAMSubscriber::topologyOpening — Notification method for opening the topology
$event
): voidIf the subscriber is registered, this method is called when the topology is opened.
注意: Due to the driver's connection handling and persistence behavior, this event may not be observed if a MongoDB\Driver\Manager uses a previously persisted » libmongoc client.
event
(MongoDB\Driver\Monitoring\TopologyOpeningEvent)An event object encapsulating information about the opened topology.
没有返回值。