# ConnectionMonitor.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/network/monitor/ConnectionMonitor.hpp"

# ConnectionMonitor

ConnectionMonitor is a middleman who's able to manage provided connections and close those ones that are not satisfy selected rules.

namespace oatpp { namespace network { namespace monitor { 
  class ConnectionMonitor : public ClientConnectionProvider, public ServerConnectionProvider {}

# Methods

Return Type Name Summary
[none] ConnectionMonitor Constructor.
void addMetricsChecker Add metrics checker.

# ConnectionMonitor::ConnectionMonitor


  • @param connectionProvider - underlying connection provider.

ConnectionMonitor(const std::shared_ptr<ConnectionProvider>& connectionProvider)

# ConnectionMonitor::addMetricsChecker

Add metrics checker.

void addMetricsChecker(const std::shared_ptr<MetricsChecker>& checker)