27 template <
typename Req,
typename Resp = Req>
31 std::chrono::milliseconds idleTimeoutTime
32 = std::chrono::milliseconds(0),
33 std::chrono::milliseconds maxTime
34 = std::chrono::milliseconds(0),
41 if (
maxTime_ > std::chrono::milliseconds(0)) {
folly::Future< folly::Unit > close() override
std::chrono::milliseconds maxTime_
Future< Unit > sleep(Duration dur, Timekeeper *tk)
constexpr detail::Map< Move > move
folly::Future< Resp > operator()(Req req) override
folly::Future< folly::Unit > idleTimeout_
std::shared_ptr< Service< Req, Resp > > service_
~ExpiringFilter() override
folly::Timekeeper * timekeeper_
folly::Future< folly::Unit > maxTimeout_
ExpiringFilter(std::shared_ptr< Service< Req, Resp >> service, std::chrono::milliseconds idleTimeoutTime=std::chrono::milliseconds(0), std::chrono::milliseconds maxTime=std::chrono::milliseconds(0), folly::Timekeeper *timekeeper=nullptr)
std::chrono::milliseconds idleTimeoutTime_