Giriş
PHP Manual
PHP Manual»MongoDB\Driver\Monitoring»MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent

The MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent class

(mongodb >=1.13.0)

The MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent class encapsulates information about a started server heartbeat (i.e. » hello command issued through » server monitoring).

final class MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent {
/* Özellikler */
public readonly string $host;
public readonly int $port;
public readonly bool $awaited;
/* Yöntemler */
final public function getHost(): string
final public function getPort(): int
final public function isAwaited(): bool
}
host
The hostname of the server.
port
The port of the server.
awaited
Whether the heartbeat used a streaming protocol. The extension does not use the streaming protocol for monitoring, so this method will always return false.
Sürüm: Açıklama
PECL mongodb 2.3.0 Added public readonly properties.

İçindekiler

To Top