proxygen
wangle::ConnectionCountFilter< Pipeline, Req, Resp > Class Template Reference
Inheritance diagram for wangle::ConnectionCountFilter< Pipeline, Req, Resp >:
wangle::ServiceFactoryFilter< Pipeline, Req, Resp > wangle::ServiceFactory< Pipeline, Req, Resp >

Public Member Functions

 ConnectionCountFilter (std::shared_ptr< ServiceFactory< Pipeline, Req, Resp >> factory)
 
Future< std::shared_ptr< Service< Req, Resp > > > operator() (std::shared_ptr< ClientBootstrap< Pipeline >> client) override
 
- Public Member Functions inherited from wangle::ServiceFactoryFilter< Pipeline, Req, Resp >
 ServiceFactoryFilter (std::shared_ptr< ServiceFactory< Pipeline, Req, Resp >> serviceFactory)
 
 ~ServiceFactoryFilter () override=default
 
- Public Member Functions inherited from wangle::ServiceFactory< Pipeline, Req, Resp >
virtual ~ServiceFactory ()=default
 

Public Attributes

int connectionCount {0}
 

Additional Inherited Members

- Protected Attributes inherited from wangle::ServiceFactoryFilter< Pipeline, Req, Resp >
std::shared_ptr< ServiceFactory< Pipeline, Req, Resp > > serviceFactory_
 

Detailed Description

template<typename Pipeline, typename Req, typename Resp>
class wangle::ConnectionCountFilter< Pipeline, Req, Resp >

Definition at line 201 of file ServiceTest.cpp.

Constructor & Destructor Documentation

template<typename Pipeline , typename Req , typename Resp >
wangle::ConnectionCountFilter< Pipeline, Req, Resp >::ConnectionCountFilter ( std::shared_ptr< ServiceFactory< Pipeline, Req, Resp >>  factory)
inlineexplicit

Member Function Documentation

template<typename Pipeline , typename Req , typename Resp >
Future<std::shared_ptr<Service<Req, Resp> > > wangle::ConnectionCountFilter< Pipeline, Req, Resp >::operator() ( std::shared_ptr< ClientBootstrap< Pipeline >>  client)
inlineoverridevirtual

Implements wangle::ServiceFactory< Pipeline, Req, Resp >.

Definition at line 207 of file ServiceTest.cpp.

208  {
209  connectionCount++;
210  return (*this->serviceFactory_)(client);
211  }
std::shared_ptr< ServiceFactory< Pipeline, Req, Resp > > serviceFactory_
Definition: Service.h:127

Member Data Documentation

template<typename Pipeline , typename Req , typename Resp >
int wangle::ConnectionCountFilter< Pipeline, Req, Resp >::connectionCount {0}

Definition at line 213 of file ServiceTest.cpp.


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