proxygen
wangle::InboundHandler< Rin, Rout > Class Template Referenceabstract

#include <Handler.h>

Inheritance diagram for wangle::InboundHandler< Rin, Rout >:
wangle::HandlerBase< InboundHandlerContext< Rout > > ProxyBackendHandler

Public Types

typedef Rin rin
 
typedef Rout rout
 
typedef folly::Unit win
 
typedef folly::Unit wout
 
typedef InboundHandlerContext< Rout > Context
 

Public Member Functions

 ~InboundHandler () override=default
 
virtual void read (Context *ctx, Rin msg)=0
 
virtual void readEOF (Context *ctx)
 
virtual void readException (Context *ctx, folly::exception_wrapper e)
 
virtual void transportActive (Context *ctx)
 
virtual void transportInactive (Context *ctx)
 
- Public Member Functions inherited from wangle::HandlerBase< InboundHandlerContext< Rout > >
virtual ~HandlerBase ()=default
 
virtual void attachPipeline (InboundHandlerContext< Rout > *)
 
virtual void detachPipeline (InboundHandlerContext< Rout > *)
 
InboundHandlerContext< Rout > * getContext ()
 

Static Public Attributes

static const HandlerDir dir = HandlerDir::IN
 

Detailed Description

template<class Rin, class Rout = Rin>
class wangle::InboundHandler< Rin, Rout >

Definition at line 110 of file Handler.h.

Member Typedef Documentation

template<class Rin, class Rout = Rin>
typedef InboundHandlerContext<Rout> wangle::InboundHandler< Rin, Rout >::Context

Definition at line 118 of file Handler.h.

template<class Rin, class Rout = Rin>
typedef Rin wangle::InboundHandler< Rin, Rout >::rin

Definition at line 114 of file Handler.h.

template<class Rin, class Rout = Rin>
typedef Rout wangle::InboundHandler< Rin, Rout >::rout

Definition at line 115 of file Handler.h.

template<class Rin, class Rout = Rin>
typedef folly::Unit wangle::InboundHandler< Rin, Rout >::win

Definition at line 116 of file Handler.h.

template<class Rin, class Rout = Rin>
typedef folly::Unit wangle::InboundHandler< Rin, Rout >::wout

Definition at line 117 of file Handler.h.

Constructor & Destructor Documentation

template<class Rin, class Rout = Rin>
wangle::InboundHandler< Rin, Rout >::~InboundHandler ( )
overridedefault

Member Function Documentation

template<class Rin, class Rout = Rin>
virtual void wangle::InboundHandler< Rin, Rout >::readEOF ( Context ctx)
inlinevirtual
template<class Rin, class Rout = Rin>
virtual void wangle::InboundHandler< Rin, Rout >::readException ( Context ctx,
folly::exception_wrapper  e 
)
inlinevirtual

Reimplemented in wangle::ServerAcceptor< Pipeline >, wangle::AcceptRoutingHandler< Pipeline, R >, wangle::AcceptRoutingHandler< DefaultPipeline, char >, ProxyBackendHandler, and wangle::test::FrameTester.

Definition at line 125 of file Handler.h.

125  {
126  ctx->fireReadException(std::move(e));
127  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
template<class Rin, class Rout = Rin>
virtual void wangle::InboundHandler< Rin, Rout >::transportActive ( Context ctx)
inlinevirtual

Reimplemented in wangle::ByteToMessageDecoder< std::string >, and wangle::ByteToMessageDecoder< T >.

Definition at line 128 of file Handler.h.

128  {
129  ctx->fireTransportActive();
130  }
template<class Rin, class Rout = Rin>
virtual void wangle::InboundHandler< Rin, Rout >::transportInactive ( Context ctx)
inlinevirtual

Reimplemented in wangle::ByteToMessageDecoder< std::string >, and wangle::ByteToMessageDecoder< T >.

Definition at line 131 of file Handler.h.

131  {
132  ctx->fireTransportInactive();
133  }

Member Data Documentation

template<class Rin, class Rout = Rin>
const HandlerDir wangle::InboundHandler< Rin, Rout >::dir = HandlerDir::IN
static

Definition at line 112 of file Handler.h.


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