Class SimpleCompositeRpcService
java.lang.Object
com.linecorp.armeria.server.composition.AbstractCompositeService<RpcService,RpcRequest,RpcResponse>
com.linecorp.armeria.server.composition.SimpleCompositeRpcService
- All Implemented Interfaces:
Unwrappable
,RpcService
,Service<RpcRequest,RpcResponse>
@Deprecated public final class SimpleCompositeRpcService extends AbstractCompositeService<RpcService,RpcRequest,RpcResponse> implements RpcService
Deprecated.
This class will be removed without a replacement.
A general purpose
AbstractCompositeService
implementation. Useful when you do not want to define
a new dedicated RpcService
type.-
Method Summary
Modifier and Type Method Description static SimpleCompositeRpcServiceBuilder
builder()
Deprecated.Returns a newSimpleCompositeRpcServiceBuilder
.Routed<RpcService>
findService(RoutingContext routingCtx)
Deprecated.static SimpleCompositeRpcService
of(CompositeServiceEntry<RpcService>... services)
Deprecated.Returns a newSimpleCompositeRpcService
that is composed of the specified entries.static SimpleCompositeRpcService
of(Iterable<CompositeServiceEntry<RpcService>> services)
Deprecated.Returns a newSimpleCompositeRpcService
that is composed of the specified entries.RpcService
serviceAt(int index)
Deprecated.List<CompositeServiceEntry<RpcService>>
services()
Deprecated.Returns the list ofCompositeServiceEntry
s added to this compositeService
.Methods inherited from class com.linecorp.armeria.server.composition.AbstractCompositeService
serve, serviceAdded
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.server.Service
as, serviceAdded, shouldCachePath, unwrap
-
Method Details
-
of
@SafeVarargs public static SimpleCompositeRpcService of(CompositeServiceEntry<RpcService>... services)Deprecated.Returns a newSimpleCompositeRpcService
that is composed of the specified entries. -
of
Deprecated.Returns a newSimpleCompositeRpcService
that is composed of the specified entries. -
builder
Deprecated.Returns a newSimpleCompositeRpcServiceBuilder
. -
services
Deprecated.Description copied from class:AbstractCompositeService
Returns the list ofCompositeServiceEntry
s added to this compositeService
.- Overrides:
services
in classAbstractCompositeService<RpcService,RpcRequest,RpcResponse>
-
serviceAt
Deprecated.Description copied from class:AbstractCompositeService
Returns theindex
-thService
in this compositeService
. The index of theService
added first is0
, and so on.- Overrides:
serviceAt
in classAbstractCompositeService<RpcService,RpcRequest,RpcResponse>
-
findService
Deprecated.Description copied from class:AbstractCompositeService
- Overrides:
findService
in classAbstractCompositeService<RpcService,RpcRequest,RpcResponse>
- Parameters:
routingCtx
- a context to find theService
.- Returns:
- the
Service
wrapped byRouted
if there's a match.Routed.empty()
if there's no match.
-