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 - the Request type of the Client being decorated
T_O - the Response type of the Client being decorated
R_I - the Request type of this Client
R_O - the Response type of this Client
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 Details

    • DecoratingClient

      protected DecoratingClient(Client<T_I,T_O> delegate)
      Creates a new instance that decorates the specified Client.