Class LoggingRpcClient
java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<Client<T_I,T_O>>
com.linecorp.armeria.client.DecoratingClient<I,O,I,O>
com.linecorp.armeria.client.SimpleDecoratingClient<I,O>
com.linecorp.armeria.client.logging.LoggingRpcClient
- All Implemented Interfaces:
Client<RpcRequest,
,RpcResponse> RpcClient
,Unwrappable
-
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingRpcClientBuilder
builder()
Returns a newly createdLoggingRpcClientBuilder
.final RpcResponse
execute
(ClientRequestContext ctx, RpcRequest req) static Function<? super RpcClient,
LoggingRpcClient> Returns a newRpcClient
decorator that logsRequest
s andResponse
s atLogLevel.DEBUG
for success,LogLevel.WARN
for failure.Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, toString, unwrap
-
Method Details
-
newDecorator
Returns a newRpcClient
decorator that logsRequest
s andResponse
s atLogLevel.DEBUG
for success,LogLevel.WARN
for failure. SeeLoggingRpcClientBuilder
for more information on the default settings. -
builder
Returns a newly createdLoggingRpcClientBuilder
. -
execute
Description copied from interface:Client
-