# The MongoDB\Driver\Monitoring\TopologyClosedEvent class

(mongodb >=1.13.0)

## はじめに

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

> 注意: 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).

## クラス概要

final class MongoDB\Driver\Monitoring\TopologyClosedEvent {
/* プロパティ */
public readonly MongoDB\BSON\ObjectId $topologyId;
/* メソッド */
final public function getTopologyId(): MongoDB\BSON\ObjectId
}

## プロパティ

topologyId
  The topology ID.

## 変更履歴

バージョン | 説明
--- | ---
PECL mongodb 2.3.0 | Added public readonly properties.

## 目次

- MongoDB\Driver\Monitoring\TopologyClosedEvent::getTopologyId — Returns the topology ID

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open