# ConnectionMaxAgeChecker.hpp

This File On Github
Ask A Question

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

# ConnectionMaxAgeChecker

ConnectionMaxAgeChecker - checks if connection is too old and should be closed. Extends - oatpp::network::monitor::MetricsChecker.

namespace oatpp { namespace network { namespace monitor { 
  class ConnectionMaxAgeChecker : public MetricsChecker {}

# Methods

Return Type Name Summary
[none] ConnectionMaxAgeChecker Constructor.

# ConnectionMaxAgeChecker::ConnectionMaxAgeChecker


  • @param maxAge - how long should connection live.

ConnectionMaxAgeChecker(const std::chrono::duration<v_int64, std::micro>& maxAge)