proxygen
wangle::HandlerAdapter< R, W > Class Template Reference

#include <Handler.h>

Inheritance diagram for wangle::HandlerAdapter< R, W >:
wangle::Handler< R, R, W, W > wangle::HandlerBase< HandlerContext< R, W > > ProxyFrontendHandler wangle::RoutingDataHandler< char > wangle::RoutingDataHandler< std::string > ThreadPrintingHandler wangle::AsyncSocketHandler wangle::MockBytesToBytesHandler wangle::RoutingDataHandler< R > wangle::test::BytesReflector

Public Types

typedef Handler< R, R, W, W >::Context Context
 
- Public Types inherited from wangle::Handler< R, R, W, W >
typedef R rin
 
typedef R rout
 
typedef W win
 
typedef W wout
 
typedef HandlerContext< R, W > Context
 

Public Member Functions

void read (Context *ctx, R msg) override
 
folly::Future< folly::Unitwrite (Context *ctx, W msg) override
 
- Public Member Functions inherited from wangle::Handler< R, R, W, W >
 ~Handler () override=default
 
virtual void read (Context *ctx, Rmsg)=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)
 
virtual folly::Future< folly::Unitwrite (Context *ctx, Wmsg)=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< HandlerContext< R, W > >
virtual ~HandlerBase ()=default
 
virtual void attachPipeline (HandlerContext< R, W > *)
 
virtual void detachPipeline (HandlerContext< R, W > *)
 
HandlerContext< R, W > * getContext ()
 

Additional Inherited Members

- Static Public Attributes inherited from wangle::Handler< R, R, W, W >
static const HandlerDir dir
 

Detailed Description

template<class R, class W = R>
class wangle::HandlerAdapter< R, W >

Definition at line 159 of file Handler.h.

Member Typedef Documentation

template<class R, class W = R>
typedef Handler<R, R, W, W>::Context wangle::HandlerAdapter< R, W >::Context

Definition at line 161 of file Handler.h.

Member Function Documentation

template<class R, class W = R>
void wangle::HandlerAdapter< R, W >::read ( Context ctx,
msg 
)
inlineoverride

Reimplemented in wangle::SerialClientDispatcher< wangle::Pipeline, folly::Req, Resp >.

Definition at line 163 of file Handler.h.

163  {
164  ctx->fireRead(std::forward<R>(msg));
165  }
template<class R, class W = R>
folly::Future<folly::Unit> wangle::HandlerAdapter< R, W >::write ( Context ctx,
msg 
)
inlineoverride

Definition at line 167 of file Handler.h.

167  {
168  return ctx->fireWrite(std::forward<W>(msg));
169  }

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