template<
typename Count_Manager>
class restinio::connection_count_limits::connection_lifetime_monitor_t< Count_Manager >
Helper type for controlling the lifetime of the connection.
Connection count limiter should be informed when a new connection created and when an existing connection is closed. An instance of connection_lifetime_monitor_t should be used for that purpose: a new instance of connection_lifetime_monitor_t should be created and bound to a connection object. The constructor of connection_lifetime_monitor_t will inform the limiter about the creation of a new connection. The destructor of connection_lifetime_monitor_t will inform the limiter about the destruction of a connection.
- Note
- This type is not Copyable but Movabale.
- Attention
- The pointer to Count_Manager passed to the constructor should remain valid the whole lifetime of connection_lifetime_monitor_t instance.
- Since
- v.0.6.12
Definition at line 374 of file connection_count_limiter.hpp.