proxygen
wangle::ClientServiceFactory< Pipeline, Req, Resp >::ClientService Class Reference
Inheritance diagram for wangle::ClientServiceFactory< Pipeline, Req, Resp >::ClientService:
wangle::Service< Req, Resp >

Public Member Functions

 ClientService (Pipeline *pipeline)
 
Future< Resp > operator() (Req request) override
 
- Public Member Functions inherited from wangle::Service< Req, Resp >
virtual ~Service ()=default
 
virtual folly::Future< folly::Unitclose ()
 
virtual bool isAvailable ()
 

Private Attributes

SerialClientDispatcher< Pipeline, Req, Resp > dispatcher_
 

Detailed Description

template<typename Pipeline, typename Req, typename Resp>
class wangle::ClientServiceFactory< Pipeline, Req, Resp >::ClientService

Definition at line 95 of file ServiceTest.cpp.

Constructor & Destructor Documentation

template<typename Pipeline , typename Req , typename Resp >
wangle::ClientServiceFactory< Pipeline, Req, Resp >::ClientService::ClientService ( Pipeline pipeline)
inlineexplicit

Definition at line 97 of file ServiceTest.cpp.

97  {
98  dispatcher_.setPipeline(pipeline);
99  }
SerialClientDispatcher< Pipeline, Req, Resp > dispatcher_

Member Function Documentation

template<typename Pipeline , typename Req , typename Resp >
Future<Resp> wangle::ClientServiceFactory< Pipeline, Req, Resp >::ClientService::operator() ( Req  request)
inlineoverridevirtual

Implements wangle::Service< Req, Resp >.

Definition at line 100 of file ServiceTest.cpp.

References folly::gen::move.

100  {
101  return dispatcher_(std::move(request));
102  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
SerialClientDispatcher< Pipeline, Req, Resp > dispatcher_

Member Data Documentation

template<typename Pipeline , typename Req , typename Resp >
SerialClientDispatcher<Pipeline, Req, Resp> wangle::ClientServiceFactory< Pipeline, Req, Resp >::ClientService::dispatcher_
private

Definition at line 104 of file ServiceTest.cpp.


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