proxygen
wangle::AcceptRoutingPipelineFactory< Pipeline, R > Class Template Reference

#include <AcceptRoutingHandler.h>

Inheritance diagram for wangle::AcceptRoutingPipelineFactory< Pipeline, R >:
wangle::AcceptPipelineFactory

Public Member Functions

 AcceptRoutingPipelineFactory (ServerBootstrap< Pipeline > *server, std::shared_ptr< RoutingDataHandlerFactory< R >> routingHandlerFactory, std::shared_ptr< RoutingDataPipelineFactory< Pipeline, R >> childPipelineFactory)
 
AcceptPipeline::Ptr newPipeline (Acceptor *) override
 
- Public Member Functions inherited from wangle::AcceptPipelineFactory
virtual ~AcceptPipelineFactory ()=default
 

Protected Attributes

ServerBootstrap< Pipeline > * server_
 
std::shared_ptr< RoutingDataHandlerFactory< R > > routingHandlerFactory_
 
std::shared_ptr< RoutingDataPipelineFactory< Pipeline, R > > childPipelineFactory_
 

Detailed Description

template<typename Pipeline, typename R>
class wangle::AcceptRoutingPipelineFactory< Pipeline, R >

Definition at line 86 of file AcceptRoutingHandler.h.

Constructor & Destructor Documentation

template<typename Pipeline , typename R >
wangle::AcceptRoutingPipelineFactory< Pipeline, R >::AcceptRoutingPipelineFactory ( ServerBootstrap< Pipeline > *  server,
std::shared_ptr< RoutingDataHandlerFactory< R >>  routingHandlerFactory,
std::shared_ptr< RoutingDataPipelineFactory< Pipeline, R >>  childPipelineFactory 
)
inline

Definition at line 88 of file AcceptRoutingHandler.h.

93  : server_(CHECK_NOTNULL(server)),
94  routingHandlerFactory_(routingHandlerFactory),
95  childPipelineFactory_(childPipelineFactory) {}
ServerBootstrap< Pipeline > * server_
std::shared_ptr< RoutingDataPipelineFactory< Pipeline, R > > childPipelineFactory_
std::shared_ptr< RoutingDataHandlerFactory< R > > routingHandlerFactory_

Member Function Documentation

template<typename Pipeline , typename R >
AcceptPipeline::Ptr wangle::AcceptRoutingPipelineFactory< Pipeline, R >::newPipeline ( Acceptor )
inlineoverridevirtual

Implements wangle::AcceptPipelineFactory.

Definition at line 97 of file AcceptRoutingHandler.h.

References wangle::AcceptRoutingHandler< Pipeline, R >::childPipelineFactory_, wangle::Pipeline< R, W >::create(), wangle::AcceptRoutingHandler< Pipeline, R >::routingHandlerFactory_, and wangle::AcceptRoutingHandler< Pipeline, R >::server_.

97  {
98  auto pipeline = AcceptPipeline::create();
99  pipeline->addBack(AcceptRoutingHandler<Pipeline, R>(
101  pipeline->finalize();
102 
103  return pipeline;
104  }
ServerBootstrap< Pipeline > * server_
std::shared_ptr< RoutingDataPipelineFactory< Pipeline, R > > childPipelineFactory_
std::shared_ptr< RoutingDataHandlerFactory< R > > routingHandlerFactory_
static Ptr create()
Definition: Pipeline.h:174

Member Data Documentation

template<typename Pipeline , typename R >
std::shared_ptr<RoutingDataPipelineFactory<Pipeline, R> > wangle::AcceptRoutingPipelineFactory< Pipeline, R >::childPipelineFactory_
protected

Definition at line 110 of file AcceptRoutingHandler.h.

template<typename Pipeline , typename R >
std::shared_ptr<RoutingDataHandlerFactory<R> > wangle::AcceptRoutingPipelineFactory< Pipeline, R >::routingHandlerFactory_
protected

Definition at line 108 of file AcceptRoutingHandler.h.

template<typename Pipeline , typename R >
ServerBootstrap<Pipeline>* wangle::AcceptRoutingPipelineFactory< Pipeline, R >::server_
protected

Definition at line 107 of file AcceptRoutingHandler.h.


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