update page now
PHP 8.1.34 Released!

MongoDB\Driver\Monitoring\CommandFailedEvent::getServerConnectionId

(mongodb >=1.14.0)

MongoDB\Driver\Monitoring\CommandFailedEvent::getServerConnectionIdDevuelve el identificador de conexión del servidor para la orden

Descripción

final public MongoDB\Driver\Monitoring\CommandFailedEvent::getServerConnectionId(): ?int

Devuelve el identificador de conexión del servidor para la orden. El identificador de conexión del servidor es distinto del servidor (es decir, MongoDB\Driver\Monitoring\CommandFailedEvent::getServer()) y es devuelto en el campo "connectionId" de una respuesta de orden hello MongoDB 4.2+.

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

Devuelve el identificador de conexión del servidor, o null si no está disponible.

Errores/Excepciones

  • Lanza una excepción MongoDB\Driver\InvalidArgumentException en caso de error durante el análisis de un argumento.
add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant