php8.5
Home/ Manual/ driver / monitoring/ The MongoDB\Driver\Monitoring\TopologyChangedEvent class

The MongoDB\Driver\Monitoring\TopologyChangedEvent class

The MongoDB\Driver\Monitoring\TopologyChangedEvent class encapsulates information about a changed topology description. For example, a topology discovering a new replica set primary would cause its topology description to change.

Intro

The MongoDB\Driver\Monitoring\TopologyChangedEvent class encapsulates information about a changed topology description. For example, a topology discovering a new replica set primary would cause its topology description to change.

Class synopsis

class MongoDB\Driver\Monitoring\TopologyChangedEvent { }

Properties

topologyId

The topology ID.

newDescription

The new topology description.

previousDescription

The previous topology description.

Changelog

VersionDescription
PECL mongodb 2.3.0Added public readonly properties.

Topologychangedevent

In this section

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