Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpeningMongoDB\Driver\Monitoring\SDAMSubscriber::topologyClosed>
^MongoDB\Driver\Monitoring\SDAMSubscriberLast updated: Mon, 26 Oct 2026

MongoDB\Driver\Monitoring\SDAMSubscriber::topologyChanged

(mongodb >=1.13.0)

MongoDB\Driver\Monitoring\SDAMSubscriber::topologyChanged — Notification method for a topology description change

Description

abstract public function MongoDB\Driver\Monitoring\SDAMSubscriber::topologyChanged(MongoDB\Driver\Monitoring\TopologyChangedEvent $event): void

If the subscriber is registered, this method is called when the topology's description changes. For example, a topology discovering a new replica set primary would cause its topology description to change.

Parameters

event (MongoDB\Driver\Monitoring\TopologyChangedEvent)

An event object encapsulating information about the changed topology description.

Return Values

No value is returned.

Errors/Exceptions

See Also


<MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpeningMongoDB\Driver\Monitoring\SDAMSubscriber::topologyClosed>
^MongoDB\Driver\Monitoring\SDAMSubscriberLast updated: Mon, 26 Oct 2026