Package com.linecorp.armeria.server
Interface DecoratingRpcServiceFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface that enables building a
SimpleDecoratingRpcService
with
RpcService.decorate(DecoratingRpcServiceFunction)
.-
Method Summary
Modifier and TypeMethodDescriptionserve
(RpcService delegate, ServiceRequestContext ctx, RpcRequest req) Serves an incomingRpcRequest
.
-
Method Details
-
serve
Serves an incomingRpcRequest
.- Parameters:
delegate
- theRpcService
being decorated by this functionctx
- the context of the receivedRpcRequest
req
- the receivedRpcRequest
- Returns:
- the
RpcResponse
- Throws:
Exception
-