proxygen
SimpleBroadcastPipelineFactory Class Reference
Inheritance diagram for SimpleBroadcastPipelineFactory:
wangle::BroadcastPipelineFactory< std::string, std::string > wangle::PipelineFactory< DefaultPipeline >

Public Member Functions

DefaultPipeline::Ptr newPipeline (std::shared_ptr< AsyncTransportWrapper > socket) override
 
BroadcastHandler< std::string, std::string > * getBroadcastHandler (DefaultPipeline *pipeline) noexceptoverride
 
void setRoutingData (DefaultPipeline *, const std::string &) noexceptoverride
 
- Public Member Functions inherited from wangle::PipelineFactory< DefaultPipeline >
virtual DefaultPipeline::Ptr newPipeline (std::shared_ptr< folly::AsyncUDPSocket >, const folly::SocketAddress &)
 
virtual ~PipelineFactory ()=default
 

Detailed Description

BroadcastPipeline maintains the upstream connection and broadcasts messages sent by the upstream server to all the observers/clients.

Definition at line 151 of file BroadcastProxy.cpp.

Member Function Documentation

BroadcastHandler<std::string, std::string>* SimpleBroadcastPipelineFactory::getBroadcastHandler ( DefaultPipeline pipeline)
inlineoverridevirtualnoexcept
DefaultPipeline::Ptr SimpleBroadcastPipelineFactory::newPipeline ( std::shared_ptr< AsyncTransportWrapper socket)
inlineoverridevirtual

Implements wangle::BroadcastPipelineFactory< std::string, std::string >.

Definition at line 154 of file BroadcastProxy.cpp.

References folly::INFO.

155  {
156  LOG(INFO) << "Creating a new BroadcastPipeline for upstream server";
157 
158  auto pipeline = DefaultPipeline::create();
159  pipeline->addBack(AsyncSocketHandler(socket));
160  pipeline->addBack(ByteToStringDecoder());
161  pipeline->addBack(BroadcastHandler<std::string, std::string>());
162  pipeline->finalize();
163  return pipeline;
164  }
NetworkSocket socket(int af, int type, int protocol)
Definition: NetOps.cpp:412
void SimpleBroadcastPipelineFactory::setRoutingData ( DefaultPipeline ,
const std::string  
)
inlineoverridevirtualnoexcept

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