The MongoDB\Driver\Monitoring\TopologyOpeningEvent class

Introduction

The MongoDB\Driver\Monitoring\TopologyOpeningEvent class encapsulates information about an opened topology.

Note: Due to the driver's connection handling and persistence behavior, this event may not be observed if a MongoDB\Driver\Manager uses a previously persisted » libmongoc client.

Class synopsis

MongoDB\Driver\Monitoring\TopologyOpeningEvent
final class MongoDB\Driver\Monitoring\TopologyOpeningEvent {
/* 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