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

The MongoDB\Driver\Monitoring\TopologyClosedEvent class

The MongoDB\Driver\Monitoring\TopologyClosedEvent class encapsulates information about a closed topology.

Intro

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

class MongoDB\Driver\Monitoring\TopologyClosedEvent { }

Properties

topologyId

The topology ID.

Changelog

VersionDescription
PECL mongodb 2.3.0Added public readonly properties.

Topologyclosedevent

In this section

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