38 template <
typename Pipeline,
typename R>
41 template <
typename Pipeline,
typename R>
50 :
server_(CHECK_NOTNULL(server)),
77 std::shared_ptr<RoutingDataPipelineFactory<Pipeline, R>>
85 template <
typename Pipeline,
typename R>
93 :
server_(CHECK_NOTNULL(server)),
101 pipeline->finalize();
109 std::shared_ptr<RoutingDataPipelineFactory<Pipeline, R>>
113 template <
typename Pipeline,
typename R>
119 std::shared_ptr<folly::AsyncTransportWrapper>
socket,
120 const R& routingData,
122 std::shared_ptr<TransportInfo> transportInfo) = 0;
AcceptRoutingPipelineFactory(ServerBootstrap< Pipeline > *server, std::shared_ptr< RoutingDataHandlerFactory< R >> routingHandlerFactory, std::shared_ptr< RoutingDataPipelineFactory< Pipeline, R >> childPipelineFactory)
boost::variant< folly::IOBuf *, folly::AsyncTransportWrapper *, ConnInfo &, ConnEvent, std::tuple< folly::IOBuf *, std::shared_ptr< folly::AsyncUDPSocket >, folly::SocketAddress > > AcceptPipelineType
void readException(Context *ctx, folly::exception_wrapper ex) override
ServerBootstrap< Pipeline > * server_
void readEOF(Context *ctx) override
AcceptRoutingHandler(ServerBootstrap< Pipeline > *server, std::shared_ptr< RoutingDataHandlerFactory< R >> routingHandlerFactory, std::shared_ptr< RoutingDataPipelineFactory< Pipeline, R >> childPipelineFactory)
std::shared_ptr< RoutingDataPipelineFactory< Pipeline, R > > childPipelineFactory_
size_t getRoutingPipelineCount() const
ServerBootstrap< Pipeline > * server_
void onError(uint64_t connId, folly::exception_wrapper ex) override
std::map< uint64_t, DefaultPipeline::Ptr > routingPipelines_
AcceptPipeline::Ptr newPipeline(Acceptor *) override
NetworkSocket socket(int af, int type, int protocol)
virtual ~RoutingDataPipelineFactory()
std::shared_ptr< RoutingDataHandlerFactory< R > > routingHandlerFactory_
std::shared_ptr< RoutingDataHandlerFactory< R > > routingHandlerFactory_
void read(Context *ctx, AcceptPipelineType conn) override
std::shared_ptr< Pipeline > Ptr
std::shared_ptr< RoutingDataPipelineFactory< Pipeline, R > > childPipelineFactory_
void onRoutingData(uint64_t connId, typename RoutingDataHandler< R >::RoutingData &routingData) override
virtual DefaultPipeline::Ptr newRoutingPipeline()
std::vector< Acceptor * > acceptors_