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
Constructors Modifier Constructor Description protected
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
-
Constructor Details
-
DecoratingClient
Creates a new instance that decorates the specifiedClient
.
-