proxygen
|
#include <CloseOnReleaseFilter.h>
Public Member Functions | |
CloseOnReleaseFilter (std::shared_ptr< Service< Req, Resp >> service) | |
folly::Future< Resp > | operator() (Req req) override |
folly::Future< folly::Unit > | close () override |
Public Member Functions inherited from wangle::ServiceFilter< Req, Resp > | |
ServiceFilter (std::shared_ptr< Service< Req, Resp >> service) | |
~ServiceFilter () override=default | |
folly::Future< folly::Unit > | close () override |
bool | isAvailable () override |
Public Member Functions inherited from wangle::Service< Req, Resp > | |
virtual | ~Service ()=default |
Private Attributes | |
std::atomic< bool > | released {false} |
Additional Inherited Members | |
Protected Attributes inherited from wangle::ServiceFilter< Req, Resp > | |
std::shared_ptr< Service< Req, Resp > > | service_ |
A service that rejects all requests after its 'close' method has been invoked.
Definition at line 28 of file CloseOnReleaseFilter.h.
|
inlineexplicit |
Definition at line 30 of file CloseOnReleaseFilter.h.
|
inlineoverridevirtual |
Reimplemented from wangle::Service< Req, Resp >.
Definition at line 42 of file CloseOnReleaseFilter.h.
References folly::makeFuture(), wangle::CloseOnReleaseFilter< Req, Resp >::released, and wangle::ServiceFilter< Req, Resp >::service_.
|
inlineoverridevirtual |
Implements wangle::Service< Req, Resp >.
Definition at line 33 of file CloseOnReleaseFilter.h.
References folly::gen::move, wangle::CloseOnReleaseFilter< Req, Resp >::released, and wangle::ServiceFilter< Req, Resp >::service_.
|
private |
Definition at line 50 of file CloseOnReleaseFilter.h.
Referenced by wangle::CloseOnReleaseFilter< Req, Resp >::close(), and wangle::CloseOnReleaseFilter< Req, Resp >::operator()().