MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpening
PHP function
Edit on GitHub ✎
(mongodb >=1.13.0)
Notification method for opening a server
Description
MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpening(MongoDB\Driver\Monitoring\ServerOpeningEvent $event): void
If the subscriber is registered, this method is called when a new server is added to the topology.
Parameters
event(MongoDB\Driver\Monitoring\ServerOpeningEvent)An event object encapsulating information about the opened server.
Return Values
Void
Errors/Exceptions
See Also
MongoDB\Driver\Monitoring\ServerOpeningEventMongoDB\Driver\Monitoring\addSubscriber()MongoDB\Driver\Manager::addSubscriber()