MongoDB C++ Driver  mongocxx-3.4.0
Public Member Functions | List of all members
mongocxx::events::server_closed_event Class Reference

An event notification sent when the driver stops monitoring a MongoDB server and removes it from the topology description. More...

#include <server_closed_event.hpp>

Public Member Functions

 ~server_closed_event ()
 Destroys a server_closed_event.
 
bsoncxx::stdx::string_view host () const
 Returns the server host name. More...
 
std::uint16_t port () const
 Returns the server port. More...
 
const bsoncxx::oid topology_id () const
 An opaque id, unique to this topology for this mongocxx::client or mongocxx::pool. More...
 

Detailed Description

An event notification sent when the driver stops monitoring a MongoDB server and removes it from the topology description.

See also
"ServerClosedEvent" in https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring-monitoring.rst

Member Function Documentation

◆ host()

bsoncxx::stdx::string_view mongocxx::events::server_closed_event::host ( ) const

Returns the server host name.

Returns
The host name.

◆ port()

std::uint16_t mongocxx::events::server_closed_event::port ( ) const

Returns the server port.

Returns
The port.

◆ topology_id()

const bsoncxx::oid mongocxx::events::server_closed_event::topology_id ( ) const

An opaque id, unique to this topology for this mongocxx::client or mongocxx::pool.

Returns
The id.

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