306#include <mongocxx/v1/detail/postlude.hpp>
std::function< void(v1::events::topology_opening const &)> topology_opening() const
Return the current the "TopologyOpeningEvent" handler.
apm(apm &&other) noexcept
Move constructor.
std::function< void(v1::events::server_opening const &)> server_opening() const
Return the current the "ServerOpeningEvent" handler.
apm & on_server_description_changed(std::function< void(v1::events::server_description_changed const &)> fn)
Set the "ServerDescriptionChangedEvent" handler.
apm & on_server_opening(std::function< void(v1::events::server_opening const &)> fn)
Set the "ServerOpeningEvent" handler.
apm & on_server_closed(std::function< void(v1::events::server_closed const &)> fn)
Set the "ServerClosedEvent" handler.
apm & on_topology_opening(std::function< void(v1::events::topology_opening const &)> fn)
Set the "TopologyOpeningEvent" handler.
std::function< void(v1::events::server_heartbeat_failed const &)> server_heartbeat_failed() const
Return the current the "ServerHeartbeatFailedEvent" handler.
std::function< void(v1::events::server_heartbeat_started const &)> server_heartbeat_started() const
Return the current the "ServerHeartbeatStartedEvent" handler.
std::function< void(v1::events::server_description_changed const &)> server_description_changed() const
Return the current the "ServerDescriptionChangedEvent" handler.
std::function< void(v1::events::topology_description_changed const &)> topology_description_changed() const
Return the current the "TopologyDescriptionChangedEvent" handler.
std::function< void(v1::events::command_started const &)> command_started() const
Return the current "CommandStartedEvent" handler.
apm & on_command_started(std::function< void(v1::events::command_started const &)> fn)
Set the "CommandStartedEvent" handler.
apm & on_topology_closed(std::function< void(v1::events::topology_closed const &)> fn)
Set the "TopologyClosedEvent" handler.
apm & on_topology_description_changed(std::function< void(v1::events::topology_description_changed const &)> fn)
Set the "TopologyDescriptionChangedEvent" handler.
std::function< void(v1::events::topology_closed const &)> topology_closed() const
Return the current the "TopologyClosedEvent" handler.
apm & on_server_heartbeat_failed(std::function< void(v1::events::server_heartbeat_failed const &)> fn)
Set the "ServerHeartbeatFailedEvent" handler.
std::function< void(v1::events::server_closed const &)> server_closed() const
Return the current the "ServerClosedEvent" handler.
~apm()
Destroy this object.
apm & on_server_heartbeat_succeeded(std::function< void(v1::events::server_heartbeat_succeeded const &)> fn)
Set the "ServerHeartbeatSucceededEvent" handler.
std::function< void(v1::events::command_succeeded const &)> command_succeeded() const
Return the current the "CommandSucceededEvent" handler.
apm & on_server_heartbeat_started(std::function< void(v1::events::server_heartbeat_started const &)> fn)
Set the "ServerHeartbeatStartedEvent" handler.
apm & on_command_succeeded(std::function< void(v1::events::command_succeeded const &)> fn)
Set the "CommandSucceededEvent" handler.
std::function< void(v1::events::server_heartbeat_succeeded const &)> server_heartbeat_succeeded() const
Return the current the "ServerHeartbeatSucceededEvent" handler.
std::function< void(v1::events::command_failed const &)> command_failed() const
Return the current the "CommandFailedEvent" handler.
apm & on_command_failed(std::function< void(v1::events::command_failed const &)> fn)
Set the "CommandFailedEvent" handler.
Declares mongocxx::v1::events::command_failed.
Declares mongocxx::v1::events::command_started.
Declares mongocxx::v1::events::command_succeeded.
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_CDECL
Expands to __cdecl when built with MSVC on Windows.
Definition export.hpp:49
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard prelude header.
Declares entities describing APM events.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Declares mongocxx::v1::events::server_closed.
Declares mongocxx::v1::events::server_description_changed.
Declares mongocxx::v1::events::server_heartbeat_failed.
Declares mongocxx::v1::events::server_heartbeat_started.
Declares mongocxx::v1::events::server_heartbeat_succeeded.
Declares mongocxx::v1::events::server_opening.
Declares mongocxx::v1::events::topology_closed.
Declares mongocxx::v1::events::topology_description_changed.
Declares mongocxx::v1::events::topology_opening.
Declares mongocxx::v1::apm.