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

The MongoDB\Driver\Monitoring\ServerClosedEvent class

The MongoDB\Driver\Monitoring\ServerClosedEvent class encapsulates information about a closed server. This corresponds to an existing server being removed from the topology.

Intro

The MongoDB\Driver\Monitoring\ServerClosedEvent class encapsulates information about a closed server. This corresponds to an existing server being removed from the topology.

Class synopsis

class MongoDB\Driver\Monitoring\ServerClosedEvent { }

Properties

host

The hostname of the server.

port

The port of the server.

topologyId

The topology ID.

Changelog

VersionDescription
PECL mongodb 2.3.0Added public readonly properties.

Serverclosedevent

In this section

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