php8.5
Home/ Manual/ monitoring / sdamsubscriber/ MongoDB\Driver\Monitoring\SDAMSubscriber::topologyOpening

MongoDB\Driver\Monitoring\SDAMSubscriber::topologyOpening

PHP function Edit on GitHub ✎

(mongodb >=1.13.0)

Notification method for opening the topology

Description

MongoDB\Driver\Monitoring\SDAMSubscriber::topologyOpening(MongoDB\Driver\Monitoring\TopologyOpeningEvent $event): void

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

Note

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.

Parameters

event (MongoDB\Driver\Monitoring\TopologyOpeningEvent)

An event object encapsulating information about the opened topology.

Return Values

Void

Errors/Exceptions

See Also

Source: reference/mongodb/mongodb/driver/monitoring/sdamsubscriber/topologyopening.xml · from the official PHP manual (php/doc-en)