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
{
/* Properties */
/* Methods */
}Properties
topologyIdThe topology ID.
newDescriptionThe new topology description.
previousDescriptionThe previous topology description.
Changelog
| Version | Description |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. |
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
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
