MongoDB\Driver\Monitoring\SDAMSubscriber::serverClosed
PHP function
Edit on GitHub ✎
(mongodb >=1.13.0)
Notification method for closing a server
Description
MongoDB\Driver\Monitoring\SDAMSubscriber::serverClosed(MongoDB\Driver\Monitoring\ServerClosedEvent $event): void
If the subscriber is registered, this method is called when an existing server is removed from the topology.
Parameters
event(MongoDB\Driver\Monitoring\ServerClosedEvent)An event object encapsulating information about the closed server.
Return Values
Void
Errors/Exceptions
See Also
MongoDB\Driver\Monitoring\ServerClosedEventMongoDB\Driver\Monitoring\addSubscriber()MongoDB\Driver\Manager::addSubscriber()