proxygen
wangle::IConnectionCounter Class Referenceabstract

#include <ConnectionCounter.h>

Inheritance diagram for wangle::IConnectionCounter:
wangle::SimpleConnectionCounter wangle::SimpleConnectionCounterForTest

Public Member Functions

virtual uint64_t getNumConnections () const =0
 
virtual uint64_t getMaxConnections () const =0
 
virtual void onConnectionAdded ()=0
 
virtual void onConnectionRemoved ()=0
 
virtual ~IConnectionCounter ()=default
 

Detailed Description

Definition at line 22 of file ConnectionCounter.h.

Constructor & Destructor Documentation

virtual wangle::IConnectionCounter::~IConnectionCounter ( )
virtualdefault

Member Function Documentation

virtual uint64_t wangle::IConnectionCounter::getMaxConnections ( ) const
pure virtual

Get the maximum number of non-whitelisted client-side connections across all Acceptors managed by this. A value of zero means "unlimited."

Implemented in wangle::SimpleConnectionCounter.

Referenced by wangle::Acceptor::getWorkerMaxConnections().

virtual uint64_t wangle::IConnectionCounter::getNumConnections ( ) const
pure virtual
virtual void wangle::IConnectionCounter::onConnectionAdded ( )
pure virtual

Increment the count of client-side connections.

Implemented in wangle::SimpleConnectionCounter.

virtual void wangle::IConnectionCounter::onConnectionRemoved ( )
pure virtual

Decrement the count of client-side connections.

Implemented in wangle::SimpleConnectionCounter.


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