proxygen
TestConnection Class Reference
Inheritance diagram for TestConnection:
wangle::ManagedConnection folly::HHWheelTimer::Callback folly::DelayedDestruction folly::DelayedDestructionBase

Public Member Functions

void timeoutExpired () noexceptoverride
 
void describe (std::ostream &) const override
 
bool isBusy () const override
 
void notifyPendingShutdown () override
 
void closeWhenIdle () override
 
void dropConnection () override
 
void dumpConnectionState (uint8_t) override
 
- Public Member Functions inherited from wangle::ManagedConnection
 ManagedConnection ()
 
virtual std::chrono::milliseconds getIdleTime () const
 
void fireNotifyPendingShutdown ()
 
void fireCloseWhenIdle (bool force_to_close=false)
 
virtual void resetTimeout ()
 
void resetTimeoutTo (std::chrono::milliseconds)
 
virtual void scheduleTimeout (folly::HHWheelTimer::Callback *callback, std::chrono::milliseconds timeout)
 
ConnectionManagergetConnectionManager ()
 
- Public Member Functions inherited from folly::HHWheelTimer::Callback
 Callback ()=default
 
virtual ~Callback ()
 
virtual void callbackCanceled () noexcept
 
void cancelTimeout ()
 
bool isScheduled () const
 
std::chrono::milliseconds getTimeRemaining ()
 
- Public Member Functions inherited from folly::DelayedDestruction
virtual void destroy ()
 
bool getDestroyPending () const
 
- Public Member Functions inherited from folly::DelayedDestructionBase
virtual ~DelayedDestructionBase ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from wangle::ManagedConnection
 ~ManagedConnection () override
 
- Protected Member Functions inherited from folly::HHWheelTimer::Callback
virtual std::chrono::steady_clock::time_point getCurTime ()
 
- Protected Member Functions inherited from folly::DelayedDestruction
 ~DelayedDestruction () override=default
 
 DelayedDestruction ()
 
- Protected Member Functions inherited from folly::DelayedDestructionBase
 DelayedDestructionBase ()
 
uint32_t getDestructorGuardCount () const
 

Detailed Description

Definition at line 18 of file AcceptorTest.cpp.

Member Function Documentation

void TestConnection::closeWhenIdle ( )
inlineoverridevirtual

Instruct the connection that it should shutdown as soon as it is safe. This is called after notifyPendingShutdown().

Implements wangle::ManagedConnection.

Definition at line 24 of file AcceptorTest.cpp.

24 {}
void TestConnection::describe ( std::ostream &  os) const
inlineoverridevirtual

Print a human-readable description of the connection.

Parameters
osDestination stream.

Implements wangle::ManagedConnection.

Definition at line 21 of file AcceptorTest.cpp.

21 {}
void TestConnection::dropConnection ( )
inlineoverridevirtual

Forcibly drop a connection.

If a request is in progress, this should cause the connection to be closed with a reset.

Implements wangle::ManagedConnection.

Definition at line 25 of file AcceptorTest.cpp.

25  {
26  delete this;
27  }
void TestConnection::dumpConnectionState ( uint8_t  loglevel)
inlineoverridevirtual

Dump the state of the connection to the log

Implements wangle::ManagedConnection.

Definition at line 28 of file AcceptorTest.cpp.

28 {}
bool TestConnection::isBusy ( ) const
inlineoverridevirtual

Check whether the connection has any requests outstanding.

Implements wangle::ManagedConnection.

Definition at line 22 of file AcceptorTest.cpp.

22 { return false; }
void TestConnection::notifyPendingShutdown ( )
inlineoverridevirtual

Notify the connection that a shutdown is pending. This method will be called at the beginning of graceful shutdown.

Implements wangle::ManagedConnection.

Definition at line 23 of file AcceptorTest.cpp.

23 {}
void TestConnection::timeoutExpired ( )
inlineoverridevirtualnoexcept

timeoutExpired() is invoked when the timeout has expired.

Implements wangle::ManagedConnection.

Definition at line 20 of file AcceptorTest.cpp.

20 {}

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