proxygen
wangle::OutboundHandler< Win, Wout > Class Template Referenceabstract

#include <Handler.h>

Inheritance diagram for wangle::OutboundHandler< Win, Wout >:
wangle::HandlerBase< OutboundHandlerContext< Wout > > wangle::EventBaseHandler wangle::LengthFieldPrepender wangle::OutputBufferingHandler

Public Types

typedef folly::Unit rin
 
typedef folly::Unit rout
 
typedef Win win
 
typedef Wout wout
 
typedef OutboundHandlerContext< Wout > Context
 

Public Member Functions

 ~OutboundHandler () override=default
 
virtual folly::Future< folly::Unitwrite (Context *ctx, Win msg)=0
 
virtual folly::Future< folly::UnitwriteException (Context *ctx, folly::exception_wrapper e)
 
virtual folly::Future< folly::Unitclose (Context *ctx)
 
- Public Member Functions inherited from wangle::HandlerBase< OutboundHandlerContext< Wout > >
virtual ~HandlerBase ()=default
 
virtual void attachPipeline (OutboundHandlerContext< Wout > *)
 
virtual void detachPipeline (OutboundHandlerContext< Wout > *)
 
OutboundHandlerContext< Wout > * getContext ()
 

Static Public Attributes

static const HandlerDir dir = HandlerDir::OUT
 

Detailed Description

template<class Win, class Wout = Win>
class wangle::OutboundHandler< Win, Wout >

Definition at line 137 of file Handler.h.

Member Typedef Documentation

template<class Win, class Wout = Win>
typedef OutboundHandlerContext<Wout> wangle::OutboundHandler< Win, Wout >::Context

Definition at line 145 of file Handler.h.

template<class Win, class Wout = Win>
typedef folly::Unit wangle::OutboundHandler< Win, Wout >::rin

Definition at line 141 of file Handler.h.

template<class Win, class Wout = Win>
typedef folly::Unit wangle::OutboundHandler< Win, Wout >::rout

Definition at line 142 of file Handler.h.

template<class Win, class Wout = Win>
typedef Win wangle::OutboundHandler< Win, Wout >::win

Definition at line 143 of file Handler.h.

template<class Win, class Wout = Win>
typedef Wout wangle::OutboundHandler< Win, Wout >::wout

Definition at line 144 of file Handler.h.

Constructor & Destructor Documentation

template<class Win, class Wout = Win>
wangle::OutboundHandler< Win, Wout >::~OutboundHandler ( )
overridedefault

Member Function Documentation

template<class Win, class Wout = Win>
virtual folly::Future<folly::Unit> wangle::OutboundHandler< Win, Wout >::close ( Context ctx)
inlinevirtual

Reimplemented in wangle::OutputBufferingHandler, and wangle::EventBaseHandler.

Definition at line 153 of file Handler.h.

153  {
154  return ctx->fireClose();
155  }
template<class Win, class Wout = Win>
virtual folly::Future<folly::Unit> wangle::OutboundHandler< Win, Wout >::write ( Context ctx,
Win  msg 
)
pure virtual
template<class Win, class Wout = Win>
virtual folly::Future<folly::Unit> wangle::OutboundHandler< Win, Wout >::writeException ( Context ctx,
folly::exception_wrapper  e 
)
inlinevirtual

Definition at line 149 of file Handler.h.

150  {
151  return ctx->fireWriteException(std::move(e));
152  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Data Documentation

template<class Win, class Wout = Win>
const HandlerDir wangle::OutboundHandler< Win, Wout >::dir = HandlerDir::OUT
static

Definition at line 139 of file Handler.h.


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