Package com.linecorp.armeria.client
Class DecoratingClient<T_I extends Request,T_O extends Response,R_I extends Request,R_O extends Response>
java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<Client<T_I,T_O>>
com.linecorp.armeria.client.DecoratingClient<T_I,T_O,R_I,R_O>
- Type Parameters:
T_I
- theRequest
type of theClient
being decoratedT_O
- theResponse
type of theClient
being decoratedR_I
- theRequest
type of thisClient
R_O
- theResponse
type of thisClient
- All Implemented Interfaces:
Client<R_I,
,R_O> Unwrappable
- Direct Known Subclasses:
SimpleDecoratingClient
public abstract class DecoratingClient<T_I extends Request,T_O extends Response,R_I extends Request,R_O extends Response>
extends AbstractUnwrappable<Client<T_I,T_O>>
implements Client<R_I,R_O>
Decorates a
Client
. Use SimpleDecoratingHttpClient
and SimpleDecoratingRpcClient
if your Client
has the same Request
and Response
type with the
Client
being decorated.-
Constructor Summary
ModifierConstructorDescriptionprotected
DecoratingClient
(Client<T_I, T_O> delegate) Creates a new instance that decorates the specifiedClient
. -
Method Summary
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
-
Constructor Details
-
DecoratingClient
Creates a new instance that decorates the specifiedClient
.
-