proxygen
wangle::ConnectionManager::Callback Class Referenceabstract

#include <ConnectionManager.h>

Inheritance diagram for wangle::ConnectionManager::Callback:
wangle::Acceptor proxygen::HTTPAcceptor TestAcceptor TestAcceptor wangle::ServerAcceptor< Pipeline > wangle::TestableAcceptor proxygen::HTTPSessionAcceptor HTTPTargetSessionAcceptor proxygen::HTTPServerAcceptor

Public Member Functions

virtual ~Callback ()=default
 
virtual void onEmpty (const ConnectionManager &cm)=0
 
virtual void onConnectionAdded (const ManagedConnection *conn)=0
 
virtual void onConnectionRemoved (const ManagedConnection *conn)=0
 

Detailed Description

Interface for an optional observer that's notified about various events in a ConnectionManager

Definition at line 42 of file ConnectionManager.h.

Constructor & Destructor Documentation

virtual wangle::ConnectionManager::Callback::~Callback ( )
virtualdefault

Member Function Documentation

virtual void wangle::ConnectionManager::Callback::onConnectionAdded ( const ManagedConnection conn)
pure virtual

Invoked when a connection is added to the ConnectionManager.

Implemented in wangle::Acceptor, and wangle::ServerAcceptor< Pipeline >.

virtual void wangle::ConnectionManager::Callback::onConnectionRemoved ( const ManagedConnection conn)
pure virtual

Invoked when a connection is removed from the ConnectionManager.

Implemented in wangle::Acceptor, and wangle::ServerAcceptor< Pipeline >.

virtual void wangle::ConnectionManager::Callback::onEmpty ( const ConnectionManager cm)
pure virtual

Invoked when the number of connections managed by the ConnectionManager changes from nonzero to zero.

Implemented in wangle::Acceptor.


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