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
public final class LoggingRpcClient extends SimpleDecoratingClient<I,O> implements RpcClient
-
Method Summary
Modifier and Type Method Description static LoggingRpcClientBuilder
builder()
Returns a newly createdLoggingRpcClientBuilder
.O
execute(ClientRequestContext ctx, I req)
static Function<? super RpcClient,LoggingRpcClient>
newDecorator()
Returns a newRpcClient
decorator that logsRequest
s andResponse
s atLogLevel.INFO
for success,LogLevel.WARN
for failure.Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, delegate, toString
-
Method Details
-
newDecorator
Returns a newRpcClient
decorator that logsRequest
s andResponse
s atLogLevel.INFO
for success,LogLevel.WARN
for failure. -
builder
Returns a newly createdLoggingRpcClientBuilder
. -
execute
Description copied from interface:Client
-