proxygen
|
#include <ServerBootstrap-inl.h>
Public Member Functions | |
ServerConnection (typename Pipeline::Ptr pipeline) | |
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 |
void | deletePipeline (wangle::PipelineBase *p) override |
void | init () |
void | refreshTimeout () 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) |
ConnectionManager * | getConnectionManager () |
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 |
Public Member Functions inherited from wangle::PipelineManager | |
virtual | ~PipelineManager ()=default |
Private Member Functions | |
~ServerConnection () override | |
Private Attributes | |
Pipeline::Ptr | pipeline_ |
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 |
Definition at line 69 of file ServerBootstrap-inl.h.
|
inlineexplicit |
Definition at line 72 of file ServerBootstrap-inl.h.
|
inlineoverrideprivate |
Definition at line 110 of file ServerBootstrap-inl.h.
|
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 88 of file ServerBootstrap-inl.h.
|
inlineoverridevirtual |
Implements wangle::PipelineManager.
Definition at line 96 of file ServerBootstrap-inl.h.
References destroy().
|
inlineoverridevirtual |
Print a human-readable description of the connection.
os | Destination stream. |
Implements wangle::ManagedConnection.
Definition at line 83 of file ServerBootstrap-inl.h.
|
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 89 of file ServerBootstrap-inl.h.
References wangle::AcceptorException::DROPPED.
|
inlineoverridevirtual |
Dump the state of the connection to the log
Implements wangle::ManagedConnection.
Definition at line 94 of file ServerBootstrap-inl.h.
|
inline |
Definition at line 101 of file ServerBootstrap-inl.h.
|
inlineoverridevirtual |
Check whether the connection has any requests outstanding.
Implements wangle::ManagedConnection.
Definition at line 84 of file ServerBootstrap-inl.h.
|
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 87 of file ServerBootstrap-inl.h.
|
inlineoverridevirtual |
Reimplemented from wangle::PipelineManager.
Definition at line 105 of file ServerBootstrap-inl.h.
|
inlineoverridevirtualnoexcept |
timeoutExpired() is invoked when the timeout has expired.
Implements wangle::ManagedConnection.
Definition at line 77 of file ServerBootstrap-inl.h.
References wangle::AcceptorException::TIMED_OUT.
|
private |
Definition at line 113 of file ServerBootstrap-inl.h.