proxygen
folly::AsyncServerSocket::BackoffTimeout Class Reference
Inheritance diagram for folly::AsyncServerSocket::BackoffTimeout:
folly::AsyncTimeout

Public Member Functions

 BackoffTimeout (BackoffTimeout &&)=delete
 
 BackoffTimeout (AsyncServerSocket *socket)
 
void timeoutExpired () noexceptoverride
 
- Public Member Functions inherited from folly::AsyncTimeout
 AsyncTimeout (TimeoutManager *timeoutManager)
 
 AsyncTimeout (EventBase *eventBase)
 
 AsyncTimeout (TimeoutManager *timeoutManager, InternalEnum internal)
 
 AsyncTimeout (EventBase *eventBase, InternalEnum internal)
 
 AsyncTimeout ()
 
virtual ~AsyncTimeout ()
 
bool scheduleTimeout (uint32_t milliseconds)
 
bool scheduleTimeout (TimeoutManager::timeout_type timeout)
 
void cancelTimeout ()
 
bool isScheduled () const
 
void attachTimeoutManager (TimeoutManager *timeoutManager, InternalEnum internal=InternalEnum::NORMAL)
 
void attachEventBase (EventBase *eventBase, InternalEnum internal=InternalEnum::NORMAL)
 
void detachTimeoutManager ()
 
void detachEventBase ()
 
const TimeoutManagergetTimeoutManager ()
 
struct event * getEvent ()
 

Private Attributes

AsyncServerSocketsocket_
 

Additional Inherited Members

- Public Types inherited from folly::AsyncTimeout
typedef TimeoutManager::InternalEnum InternalEnum
 
- Static Public Member Functions inherited from folly::AsyncTimeout
template<typename TCallback >
static std::unique_ptr< AsyncTimeoutmake (TimeoutManager &manager, TCallback &&callback)
 
template<typename TCallback >
static std::unique_ptr< AsyncTimeoutschedule (TimeoutManager::timeout_type timeout, TimeoutManager &manager, TCallback &&callback)
 

Detailed Description

Definition at line 143 of file AsyncServerSocket.cpp.

Constructor & Destructor Documentation

folly::AsyncServerSocket::BackoffTimeout::BackoffTimeout ( BackoffTimeout &&  )
delete
folly::AsyncServerSocket::BackoffTimeout::BackoffTimeout ( AsyncServerSocket socket)
inlineexplicit

Definition at line 147 of file AsyncServerSocket.cpp.

148  : AsyncTimeout(socket->getEventBase()), socket_(socket) {}
NetworkSocket socket(int af, int type, int protocol)
Definition: NetOps.cpp:412

Member Function Documentation

void folly::AsyncServerSocket::BackoffTimeout::timeoutExpired ( )
inlineoverridevirtualnoexcept

timeoutExpired() is invoked when the timeout period has expired.

Implements folly::AsyncTimeout.

Definition at line 150 of file AsyncServerSocket.cpp.

References socket_.

Member Data Documentation

AsyncServerSocket* folly::AsyncServerSocket::BackoffTimeout::socket_
private

Definition at line 155 of file AsyncServerSocket.cpp.


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