MongoDB C++ Driver mongocxx-4.0.0
|
#include <mongocxx/v_noabi/mongocxx/events/server_changed_event.hpp>
An event notification sent when the driver observes a change in the status of a server it is connected to.
Public Member Functions | |
~server_changed_event () | |
Destroys a server_changed_event. | |
bsoncxx::v_noabi::stdx::string_view | host () const |
Returns the server host name. | |
const server_description | new_description () const |
The server's description after it changed. | |
std::uint16_t | port () const |
Returns the server port. | |
const server_description | previous_description () const |
The server's description before it changed. | |
const bsoncxx::v_noabi::oid | topology_id () const |
An opaque id, unique to this topology for this mongocxx::v_noabi::client or mongocxx::v_noabi::pool. | |
mongocxx::v_noabi::events::server_changed_event::~server_changed_event | ( | ) |
Destroys a server_changed_event.
bsoncxx::v_noabi::stdx::string_view mongocxx::v_noabi::events::server_changed_event::host | ( | ) | const |
Returns the server host name.
const server_description mongocxx::v_noabi::events::server_changed_event::new_description | ( | ) | const |
The server's description after it changed.
std::uint16_t mongocxx::v_noabi::events::server_changed_event::port | ( | ) | const |
Returns the server port.
const server_description mongocxx::v_noabi::events::server_changed_event::previous_description | ( | ) | const |
The server's description before it changed.
const bsoncxx::v_noabi::oid mongocxx::v_noabi::events::server_changed_event::topology_id | ( | ) | const |
An opaque id, unique to this topology for this mongocxx::v_noabi::client or mongocxx::v_noabi::pool.