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

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

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