Class SimpleDecoratingService<I extends Request,​O extends Response>

java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<Service<T_I,​T_O>>
com.linecorp.armeria.server.DecoratingService<I,​O,​I,​O>
com.linecorp.armeria.server.SimpleDecoratingService<I,​O>
Type Parameters:
I - the Request type of the Service being decorated
O - the Response type of the Service being decorated
All Implemented Interfaces:
Unwrappable, Service<I,​O>
Direct Known Subclasses:
AbstractThrottlingService, SimpleDecoratingHttpService, SimpleDecoratingRpcService

public abstract class SimpleDecoratingService<I extends Request,​O extends Response>
extends DecoratingService<I,​O,​I,​O>
A Service that decorates another Service. Use DecoratingService if your Service has different Request or Response type from the Service being decorated.
See Also:
HttpService.decorate(DecoratingHttpServiceFunction), RpcService.decorate(DecoratingRpcServiceFunction)
  • Constructor Details

    • SimpleDecoratingService

      protected SimpleDecoratingService​(Service<I,​O> delegate)
      Creates a new instance that decorates the specified Service.