proxygen
wangle::ServerPipelineFactory< Req, Resp > Class Template Reference
Inheritance diagram for wangle::ServerPipelineFactory< Req, Resp >:
wangle::PipelineFactory< ServicePipeline >

Public Member Functions

ServicePipeline::Ptr newPipeline (std::shared_ptr< AsyncTransportWrapper > socket) override
 
- Public Member Functions inherited from wangle::PipelineFactory< ServicePipeline >
virtual ServicePipeline::Ptr newPipeline (std::shared_ptr< folly::AsyncUDPSocket >, const folly::SocketAddress &)
 
virtual ~PipelineFactory ()=default
 

Private Attributes

EchoService service_
 

Detailed Description

template<typename Req, typename Resp>
class wangle::ServerPipelineFactory< Req, Resp >

Definition at line 58 of file ServiceTest.cpp.

Member Function Documentation

template<typename Req , typename Resp >
ServicePipeline::Ptr wangle::ServerPipelineFactory< Req, Resp >::newPipeline ( std::shared_ptr< AsyncTransportWrapper socket)
inlineoverridevirtual

Implements wangle::PipelineFactory< ServicePipeline >.

Definition at line 62 of file ServiceTest.cpp.

References wangle::Pipeline< R, W >::create().

63  {
64  auto pipeline = ServicePipeline::create();
65  pipeline->addBack(AsyncSocketHandler(socket));
66  pipeline->addBack(SimpleDecode());
67  pipeline->addBack(StringCodec());
68  pipeline->addBack(SerialServerDispatcher<Req, Resp>(&service_));
69  pipeline->finalize();
70  return pipeline;
71  }
NetworkSocket socket(int af, int type, int protocol)
Definition: NetOps.cpp:412
static Ptr create()
Definition: Pipeline.h:174

Member Data Documentation

template<typename Req , typename Resp >
EchoService wangle::ServerPipelineFactory< Req, Resp >::service_
private

Definition at line 74 of file ServiceTest.cpp.


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