proxygen
proxygen::HTTPTransaction::RateLimitCallback Class Reference
Inheritance diagram for proxygen::HTTPTransaction::RateLimitCallback:
folly::HHWheelTimer::Callback

Public Member Functions

 RateLimitCallback (HTTPTransaction &txn)
 
void timeoutExpired () noexceptoverride
 
void callbackCanceled () noexceptoverride
 
- Public Member Functions inherited from folly::HHWheelTimer::Callback
 Callback ()=default
 
virtual ~Callback ()
 
void cancelTimeout ()
 
bool isScheduled () const
 
std::chrono::milliseconds getTimeRemaining ()
 

Private Attributes

HTTPTransactiontxn_
 

Additional Inherited Members

- Protected Member Functions inherited from folly::HHWheelTimer::Callback
virtual std::chrono::steady_clock::time_point getCurTime ()
 

Detailed Description

Definition at line 1327 of file HTTPTransaction.h.

Constructor & Destructor Documentation

proxygen::HTTPTransaction::RateLimitCallback::RateLimitCallback ( HTTPTransaction txn)
inlineexplicit

Definition at line 1329 of file HTTPTransaction.h.

1330  : txn_(txn) {}

Member Function Documentation

void proxygen::HTTPTransaction::RateLimitCallback::callbackCanceled ( )
inlineoverridevirtualnoexcept

This callback was canceled. The default implementation is to just proxy to timeoutExpired but if you care about the difference between the timeout finishing or being canceled you can override this.

Reimplemented from folly::HHWheelTimer::Callback.

Definition at line 1335 of file HTTPTransaction.h.

1335  {
1336  // no op
1337  }
void proxygen::HTTPTransaction::RateLimitCallback::timeoutExpired ( )
inlineoverridevirtualnoexcept

timeoutExpired() is invoked when the timeout has expired.

Implements folly::HHWheelTimer::Callback.

Definition at line 1332 of file HTTPTransaction.h.

Member Data Documentation

HTTPTransaction& proxygen::HTTPTransaction::RateLimitCallback::txn_
private

Definition at line 1339 of file HTTPTransaction.h.


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