« MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent::isAwaited
MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent::getHost »

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 {
/* プロパティ */
public readonly string $host;
public readonly int $port;
public readonly bool $awaited;
/* メソッド */
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.

変更履歴

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

目次

関連キーワード:
MongoDB   Driver   Monitoring   ServerHeartbeatStartedEvent   server   final   readonly   port   isAwaited   getHost   heartbeat   streaming   protocol   mongodb   monitoring   プロパティ   host   awaited   getPort   hostname   used   ServerHeartbeatFailedEvent   encapsulates   information   about
関連する関数・ページ:
mongodb-driver-monitoring-serverheartbeatstartedevent.gethost   mongodb-driver-monitoring-serverheartbeatstartedevent.getport   mongodb-driver-monitoring-serverheartbeatstartedevent.isawaited   mongodb-driver-monitoring-serverheartbeatfailedevent.isawaited   class.mongodb-driver-monitoring-serverheartbeatfailedevent   class.mongodb-driver-monitoring-serverheartbeatsucceededevent