proxygen
proxygen::HTTPSession::FlowControlTimeout Class Reference
Inheritance diagram for proxygen::HTTPSession::FlowControlTimeout:
folly::HHWheelTimer::Callback

Public Member Functions

 FlowControlTimeout (HTTPSession *session)
 
 ~FlowControlTimeout () override
 
void timeoutExpired () noexceptoverride
 
std::chrono::milliseconds getTimeoutDuration () const
 
void setTimeoutDuration (std::chrono::milliseconds duration)
 
- 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 ()
 

Private Attributes

HTTPSessionsession_
 
std::chrono::milliseconds duration_ {std::chrono::milliseconds(0)}
 

Additional Inherited Members

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

Detailed Description

Definition at line 1000 of file HTTPSession.h.

Constructor & Destructor Documentation

proxygen::HTTPSession::FlowControlTimeout::FlowControlTimeout ( HTTPSession session)
inlineexplicit

Definition at line 1002 of file HTTPSession.h.

1002 : session_(session) {}
proxygen::HTTPSession::FlowControlTimeout::~FlowControlTimeout ( )
inlineoverride

Definition at line 1003 of file HTTPSession.h.

1003 {}

Member Function Documentation

std::chrono::milliseconds proxygen::HTTPSession::FlowControlTimeout::getTimeoutDuration ( ) const
inline

Definition at line 1009 of file HTTPSession.h.

Referenced by proxygen::HTTPSession::onConnectionSendWindowClosed().

1009  {
1010  return duration_;
1011  }
std::chrono::milliseconds duration_
Definition: HTTPSession.h:1018
void proxygen::HTTPSession::FlowControlTimeout::setTimeoutDuration ( std::chrono::milliseconds  duration)
inline

Definition at line 1013 of file HTTPSession.h.

Referenced by proxygen::HTTPSession::WriteSegment::writeErr().

1013  {
1014  duration_ = duration;
1015  }
std::chrono::milliseconds duration_
Definition: HTTPSession.h:1018
void proxygen::HTTPSession::FlowControlTimeout::timeoutExpired ( )
inlineoverridevirtualnoexcept

timeoutExpired() is invoked when the timeout has expired.

Implements folly::HHWheelTimer::Callback.

Definition at line 1005 of file HTTPSession.h.

References proxygen::HTTPSession::flowControlTimeoutExpired(), and proxygen::HTTPSession::WriteTimeout::session_.

1005  {
1007  }
void flowControlTimeoutExpired() noexcept

Member Data Documentation

std::chrono::milliseconds proxygen::HTTPSession::FlowControlTimeout::duration_ {std::chrono::milliseconds(0)}
private

Definition at line 1018 of file HTTPSession.h.

HTTPSession* proxygen::HTTPSession::FlowControlTimeout::session_
private

Definition at line 1017 of file HTTPSession.h.


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