#include <mongocxx/v_noabi/mongocxx/events/server_changed_event.hpp>
A change in the description of a connected MongoDB server.
Public Member Functions | |
| server_changed_event (v1::events::server_description_changed const &event) | |
| Construct with the mongocxx::v1 equivalent. | |
| server_changed_event (void const *event) | |
| bsoncxx::v_noabi::stdx::string_view | host () const |
| Returns the server host name. | |
| server_description const | new_description () const |
| The server's description after it changed. | |
| operator v1::events::server_description_changed () const | |
| Convert to the mongocxx::v1 equivalent. | |
| std::uint16_t | port () const |
| Returns the server port. | |
| server_description const | previous_description () const |
| The server's description before it changed. | |
| bsoncxx::v_noabi::oid const | topology_id () const |
| An opaque id, unique to this topology for this mongocxx::v_noabi::client or mongocxx::v_noabi::pool. | |
|
explicit |
|
inline |
Construct with the mongocxx::v1 equivalent.
|
inline |
Returns the server host name.
The server's description after it changed.
|
inlineexplicit |
Convert to the mongocxx::v1 equivalent.
|
inline |
Returns the server port.
| server_description const mongocxx::v_noabi::events::server_changed_event::previous_description | ( | ) | const |
The server's description before it changed.
|
inline |
An opaque id, unique to this topology for this mongocxx::v_noabi::client or mongocxx::v_noabi::pool.