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
Properties
topologyIdThe topology ID.
newDescriptionThe new topology description.
previousDescriptionThe previous topology description.
Changelog
| Version | Description |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. |
Topologychangedevent