public final class SimpleCompositeRpcService extends AbstractCompositeService<RpcService,RpcRequest,RpcResponse> implements RpcService
AbstractCompositeService implementation. Useful when you do not want to define
a new dedicated RpcService type.| Constructor and Description |
|---|
SimpleCompositeRpcService(CompositeServiceEntry<RpcService>... services)
Deprecated.
|
SimpleCompositeRpcService(Iterable<CompositeServiceEntry<RpcService>> services)
Deprecated.
Use
of(Iterable). |
| Modifier and Type | Method and Description |
|---|---|
static SimpleCompositeRpcServiceBuilder |
builder()
Returns a new
SimpleCompositeRpcServiceBuilder. |
Routed<RpcService> |
findService(RoutingContext routingCtx)
|
static SimpleCompositeRpcService |
of(CompositeServiceEntry<RpcService>... services)
Returns a new
SimpleCompositeRpcService that is composed of the specified entries. |
static SimpleCompositeRpcService |
of(Iterable<CompositeServiceEntry<RpcService>> services)
Returns a new
SimpleCompositeRpcService that is composed of the specified entries. |
RpcService |
serviceAt(int index)
|
List<CompositeServiceEntry<RpcService>> |
services()
Returns the list of
CompositeServiceEntrys added to this composite Service. |
serve, serviceAddedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecorate, decorate, serveas, decorate, serviceAdded, shouldCachePath@SafeVarargs @Deprecated public SimpleCompositeRpcService(CompositeServiceEntry<RpcService>... services)
of(CompositeServiceEntry[]).@Deprecated public SimpleCompositeRpcService(Iterable<CompositeServiceEntry<RpcService>> services)
of(Iterable).@SafeVarargs public static SimpleCompositeRpcService of(CompositeServiceEntry<RpcService>... services)
SimpleCompositeRpcService that is composed of the specified entries.public static SimpleCompositeRpcService of(Iterable<CompositeServiceEntry<RpcService>> services)
SimpleCompositeRpcService that is composed of the specified entries.public static SimpleCompositeRpcServiceBuilder builder()
SimpleCompositeRpcServiceBuilder.public List<CompositeServiceEntry<RpcService>> services()
AbstractCompositeServiceCompositeServiceEntrys added to this composite Service.services in class AbstractCompositeService<RpcService,RpcRequest,RpcResponse>public RpcService serviceAt(int index)
AbstractCompositeServiceindex-th Service in this composite Service. The index of the
Service added first is 0, and so on.serviceAt in class AbstractCompositeService<RpcService,RpcRequest,RpcResponse>public Routed<RpcService> findService(RoutingContext routingCtx)
AbstractCompositeServicefindService in class AbstractCompositeService<RpcService,RpcRequest,RpcResponse>routingCtx - a context to find the Service.Service wrapped by Routed if there's a match.
Routed.empty() if there's no match.Copyright © 2020 LeanCloud. All rights reserved.