proxygen
|
#include <WheelTimerInstance.h>
Public Member Functions | |
WheelTimerInstance () | |
WheelTimerInstance (std::chrono::milliseconds defaultTimeoutMS, folly::EventBase *eventBase=nullptr) | |
WheelTimerInstance (const WheelTimerInstance &timerInstance) | |
WheelTimerInstance (WheelTimerInstance &&timerInstance) noexcept | |
WheelTimerInstance (folly::HHWheelTimer *timer) | |
std::chrono::milliseconds | getDefaultTimeout () const |
void | setDefaultTimeout (std::chrono::milliseconds timeout) |
void | scheduleTimeout (folly::HHWheelTimer::Callback *callback, std::chrono::milliseconds timeout) |
void | scheduleTimeout (folly::HHWheelTimer::Callback *callback) |
WheelTimerInstance & | operator= (const WheelTimerInstance &timer) |
WheelTimerInstance & | operator= (const WheelTimerInstance &&timer) |
operator bool () const | |
folly::HHWheelTimer * | getWheelTimer () const |
Private Attributes | |
folly::HHWheelTimer * | wheelTimerPtr_ {nullptr} |
std::chrono::milliseconds | defaultTimeoutMS_ |
Definition at line 29 of file WheelTimerInstance.h.
proxygen::WheelTimerInstance::WheelTimerInstance | ( | ) |
Definition at line 19 of file WheelTimerInstance.cpp.
|
explicit |
Definition at line 31 of file WheelTimerInstance.cpp.
References folly::EventBaseManager::get(), folly::EventBaseManager::getEventBase(), folly::EventBase::timer(), and wheelTimerPtr_.
proxygen::WheelTimerInstance::WheelTimerInstance | ( | const WheelTimerInstance & | timerInstance | ) |
Definition at line 40 of file WheelTimerInstance.cpp.
|
noexcept |
Definition at line 45 of file WheelTimerInstance.cpp.
|
explicit |
Definition at line 22 of file WheelTimerInstance.cpp.
References defaultTimeoutMS_, and folly::HHWheelTimer::getDefaultTimeout().
std::chrono::milliseconds proxygen::WheelTimerInstance::getDefaultTimeout | ( | ) | const |
Definition at line 51 of file WheelTimerInstance.cpp.
References defaultTimeoutMS_.
Referenced by proxygen::HTTPSession::createTransaction().
|
inline |
Definition at line 61 of file WheelTimerInstance.h.
Referenced by proxygen::HTTPSession::createTransaction().
|
explicit |
Definition at line 88 of file WheelTimerInstance.cpp.
References wheelTimerPtr_.
WheelTimerInstance & proxygen::WheelTimerInstance::operator= | ( | const WheelTimerInstance & | timer | ) |
Definition at line 75 of file WheelTimerInstance.cpp.
References defaultTimeoutMS_, and wheelTimerPtr_.
WheelTimerInstance & proxygen::WheelTimerInstance::operator= | ( | const WheelTimerInstance && | timer | ) |
Definition at line 82 of file WheelTimerInstance.cpp.
References defaultTimeoutMS_, folly::gen::move, and wheelTimerPtr_.
void proxygen::WheelTimerInstance::scheduleTimeout | ( | folly::HHWheelTimer::Callback * | callback, |
std::chrono::milliseconds | timeout | ||
) |
Definition at line 59 of file WheelTimerInstance.cpp.
References folly::HHWheelTimer::scheduleTimeout(), and wheelTimerPtr_.
Referenced by proxygen::HTTPSession::onConnectionSendWindowClosed(), proxygen::HTTPSession::onWriteSuccess(), proxygen::HTTPSession::readTimeoutExpired(), proxygen::HTTPSession::runLoopCallback(), and scheduleTimeout().
void proxygen::WheelTimerInstance::scheduleTimeout | ( | folly::HHWheelTimer::Callback * | callback | ) |
Definition at line 69 of file WheelTimerInstance.cpp.
References defaultTimeoutMS_, and scheduleTimeout().
void proxygen::WheelTimerInstance::setDefaultTimeout | ( | std::chrono::milliseconds | timeout | ) |
Definition at line 55 of file WheelTimerInstance.cpp.
References defaultTimeoutMS_.
|
private |
Definition at line 71 of file WheelTimerInstance.h.
Referenced by getDefaultTimeout(), operator=(), scheduleTimeout(), setDefaultTimeout(), and WheelTimerInstance().
|
private |
Definition at line 67 of file WheelTimerInstance.h.
Referenced by operator bool(), operator=(), scheduleTimeout(), and WheelTimerInstance().