Package com.linecorp.armeria.client
Interface DecoratingRpcClientFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DecoratingRpcClientFunction
A functional interface that enables building a
SimpleDecoratingRpcClient
with
ClientBuilder.rpcDecorator(DecoratingRpcClientFunction)
.-
Method Summary
Modifier and Type Method Description RpcResponse
execute(RpcClient delegate, ClientRequestContext ctx, RpcRequest req)
-
Method Details
-
execute
- Parameters:
delegate
- theRpcClient
being decorated by this functionctx
- the context of theRpcRequest
being sentreq
- theRpcRequest
being sent- Returns:
- the
RpcResponse
to be received - Throws:
Exception
-