The MongoDB\Driver\Monitoring\ServerOpeningEvent class

(mongodb >=1.13.0)

Introduzione

The MongoDB\Driver\Monitoring\ServerOpeningEvent class encapsulates information about an opened server. This corresponds to a new server being added to the topology.

Sommario della classe

final class MongoDB\Driver\Monitoring\ServerOpeningEvent {
/* Proprietà */
public readonly string $host;
public readonly int $port;
/* Metodi */
final public getHost(): string
final public getPort(): int
}

Proprietà

host
The hostname of the server.
port
The port of the server.
topologyId
The topology ID.

Log delle modifiche

Versione Descrizione
PECL mongodb 2.3.0 Added public readonly properties.

Indice dei contenuti

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top