MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpening
PHP Manual
PHP Manual»MongoDB\Driver\Monitoring\SDAMSubscriber»MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpening

MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpening

(mongodb >=1.13.0)

MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpeningNotification method for opening a server

Опис

abstract public function 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.

Параметри

event (MongoDB\Driver\Monitoring\ServerOpeningEvent)
An event object encapsulating information about the opened server.

Значення, що повертаються

Не повертає значень.

Помилки/виключення

Прогляньте також

To Top