The MongoDB\Driver\Monitoring\TopologyClosedEvent class
(mongodb >=1.13.0)
Introduction
The MongoDB\Driver\Monitoring\TopologyClosedEvent class encapsulates information about a closed topology.
Note:
Due to the driver's connection handling and persistence behavior, this event can only be observed when a MongoDB\Driver\Manager is created with the
"disableClientPersistence"driver option and freed before request shutdown (RSHUTDOWN).
Class synopsis
final
class MongoDB\Driver\Monitoring\TopologyClosedEvent
{
/* Properties */
/* Methods */
}Properties
topologyIdThe topology ID.
Changelog
| Version | Description |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. |
Table of Contents
- MongoDB\Driver\Monitoring\TopologyClosedEvent::getTopologyId — Returns the topology ID
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
