proxygen
|
#include <OutputBufferingHandler.h>
Public Member Functions | |
folly::Future< folly::Unit > | write (Context *ctx, std::unique_ptr< folly::IOBuf > buf) override |
void | runLoopCallback () noexceptoverride |
void | cleanUp () |
folly::Future< folly::Unit > | close (Context *ctx) override |
![]() | |
~OutboundHandler () override=default | |
virtual folly::Future< folly::Unit > | write (Context *ctx, Win msg)=0 |
virtual folly::Future< folly::Unit > | writeException (Context *ctx, folly::exception_wrapper e) |
![]() | |
virtual | ~HandlerBase ()=default |
virtual void | attachPipeline (OutboundHandlerContext< Wout > *) |
virtual void | detachPipeline (OutboundHandlerContext< Wout > *) |
OutboundHandlerContext< Wout > * | getContext () |
Public Attributes | |
folly::SharedPromise< folly::Unit > | sharedPromise_ |
std::unique_ptr< folly::IOBuf > | sends_ {nullptr} |
bool | queueSends_ {true} |
Additional Inherited Members | |
![]() | |
typedef folly::Unit | rin |
typedef folly::Unit | rout |
typedef Win | win |
typedef Wout | wout |
typedef OutboundHandlerContext< Wout > | Context |
![]() | |
static const HandlerDir | dir = HandlerDir::OUT |
![]() | |
virtual | ~LoopCallback ()=default |
void | cancelLoopCallback () |
bool | isLoopCallbackScheduled () const |
Definition at line 34 of file OutputBufferingHandler.h.
|
inline |
Definition at line 69 of file OutputBufferingHandler.h.
References folly::EventBase::LoopCallback::cancelLoopCallback(), folly::EventBase::LoopCallback::isLoopCallbackScheduled(), sends_, and sharedPromise_.
|
inlineoverridevirtual |
Reimplemented from wangle::OutboundHandler< Win, Wout >.
Definition at line 78 of file OutputBufferingHandler.h.
References folly::EventBase::LoopCallback::cancelLoopCallback(), wangle::OutboundHandlerContext< Out >::fireClose(), folly::EventBase::LoopCallback::isLoopCallbackScheduled(), sends_, folly::SharedPromise< T >::setException(), and sharedPromise_.
|
inlineoverridevirtualnoexcept |
Implements folly::EventBase::LoopCallback.
Definition at line 58 of file OutputBufferingHandler.h.
References wangle::OutboundHandlerContext< Out >::fireWrite(), wangle::HandlerBase< OutboundHandlerContext< Wout > >::getContext(), folly::gen::move, sends_, folly::SharedPromise< T >::setTry(), sharedPromise_, folly::f14::swap(), and folly::pushmi::detail::t.
|
inlineoverride |
Definition at line 37 of file OutputBufferingHandler.h.
References wangle::OutboundHandlerContext< Out >::fireWrite(), folly::SharedPromise< T >::getFuture(), wangle::OutboundHandlerContext< Out >::getTransport(), folly::EventBase::LoopCallback::isLoopCallbackScheduled(), folly::gen::move, queueSends_, sends_, and sharedPromise_.
bool wangle::OutputBufferingHandler::queueSends_ {true} |
Definition at line 94 of file OutputBufferingHandler.h.
Referenced by write().
std::unique_ptr<folly::IOBuf> wangle::OutputBufferingHandler::sends_ {nullptr} |
Definition at line 93 of file OutputBufferingHandler.h.
Referenced by cleanUp(), close(), runLoopCallback(), and write().
folly::SharedPromise<folly::Unit> wangle::OutputBufferingHandler::sharedPromise_ |
Definition at line 92 of file OutputBufferingHandler.h.
Referenced by cleanUp(), close(), runLoopCallback(), and write().