- Type Parameters:
I
- the type of incomingRequest
. Must beHttpRequest
orRpcRequest
.O
- the type of outgoingResponse
. Must beHttpResponse
orRpcResponse
.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A callback which is invoked to handle accepted (successful) requests indicated by
ThrottlingStrategy
.-
Method Summary
Modifier and TypeMethodDescriptionhandleAccepted
(Service<I, O> delegate, ServiceRequestContext ctx, I req) Invoked when theThrottlingStrategy
accepts the specifiedRequest
.
-
Method Details
-
handleAccepted
Invoked when theThrottlingStrategy
accepts the specifiedRequest
.- Parameters:
delegate
- the nextService
in the decoration chainctx
- theServiceRequestContext
ofreq
req
- theRequest
being accepted- Throws:
Exception
- when something wrong happens
-