MongoDB C++ Driver 4.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mongocxx::v_noabi::events::server_changed_event Class Reference

#include <mongocxx/v_noabi/mongocxx/events/server_changed_event.hpp>

Description

A change in the description of a connected MongoDB server.

See also

Public Member Functions

 ~server_changed_event ()
 Destroys a server_changed_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.
 
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.
 

Constructor & Destructor Documentation

◆ ~server_changed_event()

mongocxx::v_noabi::events::server_changed_event::~server_changed_event ( )

Destroys a server_changed_event.

Member Function Documentation

◆ host()

bsoncxx::v_noabi::stdx::string_view mongocxx::v_noabi::events::server_changed_event::host ( ) const

Returns the server host name.

Returns
The host name.

◆ new_description()

server_description const mongocxx::v_noabi::events::server_changed_event::new_description ( ) const

The server's description after it changed.

Returns
The server_description.

◆ port()

std::uint16_t mongocxx::v_noabi::events::server_changed_event::port ( ) const

Returns the server port.

Returns
The port.

◆ previous_description()

server_description const mongocxx::v_noabi::events::server_changed_event::previous_description ( ) const

The server's description before it changed.

Returns
The server_description.

◆ topology_id()

bsoncxx::v_noabi::oid const 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.

Returns
The id.

The documentation for this class was generated from the following file: