proxygen
wangle::ConstFactory< Pipeline, Req, Resp > Class Template Reference

#include <Service.h>

Inheritance diagram for wangle::ConstFactory< Pipeline, Req, Resp >:
wangle::ServiceFactory< Pipeline, Req, Resp >

Public Member Functions

 ConstFactory (std::shared_ptr< Service< Req, Resp >> service)
 
folly::Future< std::shared_ptr< Service< Req, Resp > > > operator() (std::shared_ptr< ClientBootstrap< Pipeline >>) override
 
- Public Member Functions inherited from wangle::ServiceFactory< Pipeline, Req, Resp >
virtual ~ServiceFactory ()=default
 

Private Attributes

std::shared_ptr< Service< Req, Resp > > service_
 

Detailed Description

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

Definition at line 103 of file Service.h.

Constructor & Destructor Documentation

template<typename Pipeline , typename Req , typename Resp >
wangle::ConstFactory< Pipeline, Req, Resp >::ConstFactory ( std::shared_ptr< Service< Req, Resp >>  service)
inlineexplicit

Definition at line 105 of file Service.h.

106  : service_(service) {}
std::shared_ptr< Service< Req, Resp > > service_
Definition: Service.h:113

Member Function Documentation

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

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

Definition at line 108 of file Service.h.

109  {
110  return service_;
111  }
std::shared_ptr< Service< Req, Resp > > service_
Definition: Service.h:113

Member Data Documentation

template<typename Pipeline , typename Req , typename Resp >
std::shared_ptr<Service<Req, Resp> > wangle::ConstFactory< Pipeline, Req, Resp >::service_
private

Definition at line 113 of file Service.h.


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