The MongoDB\Driver\Monitoring\TopologyClosedEvent class

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

MongoDB\Driver\Monitoring\TopologyClosedEvent
final class MongoDB\Driver\Monitoring\TopologyClosedEvent {
/* Properties */
public readonly MongoDB\BSON\ObjectId $topologyId;
/* Methods */
final public MongoDB\BSON\ObjectId getTopologyId()
}

Properties

topologyId
The topology ID.

Changelog

Version Description
PECL mongodb 2.3.0 Added public readonly properties.
Table of Contents