The MongoDB\Driver\Monitoring\TopologyChangedEvent class
(mongodb >=1.13.0)
Introduction
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
final class MongoDB\Driver\Monitoring\TopologyChangedEvent {
/* Methods */
}Table of Contents
- MongoDB\Driver\Monitoring\TopologyChangedEvent::getNewDescription — Returns the new description for the topology
- MongoDB\Driver\Monitoring\TopologyChangedEvent::getPreviousDescription — Returns the previous description for the topology
- MongoDB\Driver\Monitoring\TopologyChangedEvent::getTopologyId — Returns the topology ID
↑ and ↓ to navigate • Enter to select • Esc to close • / to open