proxygen
ProxyBackendPipelineFactory Class Reference
Inheritance diagram for ProxyBackendPipelineFactory:
wangle::PipelineFactory< DefaultPipeline >

Public Member Functions

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

Private Attributes

DefaultPipelinefrontendPipeline_
 

Detailed Description

Definition at line 54 of file Proxy.cpp.

Constructor & Destructor Documentation

ProxyBackendPipelineFactory::ProxyBackendPipelineFactory ( DefaultPipeline frontendPipeline)
inlineexplicit

Definition at line 56 of file Proxy.cpp.

56  :
57  frontendPipeline_(frontendPipeline) {}
DefaultPipeline * frontendPipeline_
Definition: Proxy.cpp:69

Member Function Documentation

DefaultPipeline::Ptr ProxyBackendPipelineFactory::newPipeline ( std::shared_ptr< AsyncTransportWrapper sock)
inlineoverridevirtual

Implements wangle::PipelineFactory< DefaultPipeline >.

Definition at line 59 of file Proxy.cpp.

60  {
61  auto pipeline = DefaultPipeline::create();
62  pipeline->addBack(AsyncSocketHandler(sock));
63  pipeline->addBack(ProxyBackendHandler(frontendPipeline_));
64  pipeline->finalize();
65 
66  return pipeline;
67  }
DefaultPipeline * frontendPipeline_
Definition: Proxy.cpp:69

Member Data Documentation

DefaultPipeline* ProxyBackendPipelineFactory::frontendPipeline_
private

Definition at line 69 of file Proxy.cpp.


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