MongoDB C++ Driver
mongocxx-3.7.0
|
An event notification sent when the driver completes a "hello" command to check the status of a server. More...
#include <heartbeat_succeeded_event.hpp>
Public Member Functions | |
~heartbeat_succeeded_event () | |
Destroys a heartbeat_succeeded_event. | |
bsoncxx::document::view | reply () const |
Returns the server reply for the succeeded operation. More... | |
std::int64_t | duration () const |
Returns the duration of the successful operation. More... | |
bsoncxx::stdx::string_view | host () const |
Returns the host name. More... | |
std::uint16_t | port () const |
Returns the port. More... | |
bool | awaited () const |
Returns a boolean indicating whether this heartbeat event is from an awaitable hello. More... | |
An event notification sent when the driver completes a "hello" command to check the status of a server.
bool mongocxx::events::heartbeat_succeeded_event::awaited | ( | ) | const |
Returns a boolean indicating whether this heartbeat event is from an awaitable hello.
std::int64_t mongocxx::events::heartbeat_succeeded_event::duration | ( | ) | const |
Returns the duration of the successful operation.
bsoncxx::stdx::string_view mongocxx::events::heartbeat_succeeded_event::host | ( | ) | const |
Returns the host name.
std::uint16_t mongocxx::events::heartbeat_succeeded_event::port | ( | ) | const |
Returns the port.
bsoncxx::document::view mongocxx::events::heartbeat_succeeded_event::reply | ( | ) | const |
Returns the server reply for the succeeded operation.