proxygen
TestPipelineFactory Class Reference
Inheritance diagram for TestPipelineFactory:
wangle::PipelineFactory< BytesPipeline > wangle::PipelineFactory< BytesPipeline > CustomPipelineFactory

Public Member Functions

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

Public Attributes

std::atomic< int > pipelines {0}
 
std::atomic< int > pipelines_ {0}
 

Detailed Description

Definition at line 54 of file BootstrapTest.cpp.

Member Function Documentation

BytesPipeline::Ptr TestPipelineFactory::newPipeline ( std::shared_ptr< AsyncTransportWrapper )
inlineoverridevirtual

Implements wangle::PipelineFactory< BytesPipeline >.

Reimplemented in CustomPipelineFactory.

Definition at line 46 of file ObservingClientPipelineTest.cpp.

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

47  {
48  pipelines_++;
49  auto pipeline = BytesPipeline::create();
50  pipeline->addBack(new BytesToBytesHandler());
51  pipeline->finalize();
52  return pipeline;
53  }
HandlerAdapter< folly::IOBufQueue &, std::unique_ptr< folly::IOBuf > > BytesToBytesHandler
Definition: Handler.h:173
static Ptr create()
Definition: Pipeline.h:174
BytesPipeline::Ptr TestPipelineFactory::newPipeline ( std::shared_ptr< AsyncTransportWrapper )
inlineoverridevirtual

Implements wangle::PipelineFactory< BytesPipeline >.

Reimplemented in CustomPipelineFactory.

Definition at line 56 of file BootstrapTest.cpp.

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

Referenced by CustomPipelineFactory::newPipeline().

57  {
58  pipelines++;
59  auto pipeline = BytesPipeline::create();
60  pipeline->addBack(new BytesToBytesHandler());
61  pipeline->finalize();
62  return pipeline;
63  }
HandlerAdapter< folly::IOBufQueue &, std::unique_ptr< folly::IOBuf > > BytesToBytesHandler
Definition: Handler.h:173
static Ptr create()
Definition: Pipeline.h:174
std::atomic< int > pipelines

Member Data Documentation

std::atomic<int> TestPipelineFactory::pipelines {0}

Definition at line 64 of file BootstrapTest.cpp.

std::atomic<int> TestPipelineFactory::pipelines_ {0}

Definition at line 54 of file ObservingClientPipelineTest.cpp.


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