Class LoggingRpcClient
java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<Client<RpcRequest,RpcResponse>>
com.linecorp.armeria.client.DecoratingClient<RpcRequest,RpcResponse,RpcRequest,RpcResponse>
com.linecorp.armeria.client.SimpleDecoratingClient<RpcRequest,RpcResponse>
com.linecorp.armeria.client.logging.LoggingRpcClient
- All Implemented Interfaces:
Client<RpcRequest,
,RpcResponse> RpcClient
,Unwrappable
public final class LoggingRpcClient
extends SimpleDecoratingClient<RpcRequest,RpcResponse>
implements RpcClient
-
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, unwrapAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.common.util.Unwrappable
equalsIgnoreWrapper, unwrapAll
-
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
-