| Package | Description |
|---|---|
| com.linecorp.armeria.server |
Server core.
|
| com.linecorp.armeria.server.composition |
Service composition.
|
| com.linecorp.armeria.server.throttling |
Request throttling service decorators and strategies.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
RpcServiceWithRoutes
An interface that enables getting all the
Routes where an RpcService should be bound. |
interface |
TransientRpcService
An
RpcService that handles transient requests, for example, health check requests. |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleDecoratingRpcService
An
RpcService that decorates another RpcService. |
| Modifier and Type | Method and Description |
|---|---|
default RpcService |
RpcService.decorate(DecoratingRpcServiceFunction function)
Creates a new
RpcService that decorates this RpcService with the specified
DecoratingRpcServiceFunction. |
| Modifier and Type | Method and Description |
|---|---|
RpcResponse |
DecoratingRpcServiceFunction.serve(RpcService delegate,
ServiceRequestContext ctx,
RpcRequest req)
Serves an incoming
RpcRequest. |
| Modifier and Type | Method and Description |
|---|---|
default <R extends Service<R_I,R_O>,R_I extends Request,R_O extends Response> |
RpcService.decorate(Function<? super RpcService,R> decorator)
|
| Constructor and Description |
|---|
SimpleDecoratingRpcService(RpcService delegate)
Creates a new instance that decorates the specified
Service. |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleCompositeRpcService
A general purpose
AbstractCompositeService implementation. |
| Modifier and Type | Method and Description |
|---|---|
RpcService |
SimpleCompositeRpcService.serviceAt(int index) |
| Modifier and Type | Method and Description |
|---|---|
Routed<RpcService> |
SimpleCompositeRpcService.findService(RoutingContext routingCtx) |
List<CompositeServiceEntry<RpcService>> |
SimpleCompositeRpcService.services() |
| Modifier and Type | Method and Description |
|---|---|
SimpleCompositeRpcServiceBuilder |
SimpleCompositeRpcServiceBuilder.service(Route route,
RpcService service) |
SimpleCompositeRpcServiceBuilder |
SimpleCompositeRpcServiceBuilder.service(String pathPattern,
RpcService service) |
SimpleCompositeRpcServiceBuilder |
SimpleCompositeRpcServiceBuilder.serviceUnder(String pathPrefix,
RpcService service) |
| Modifier and Type | Method and Description |
|---|---|
static SimpleCompositeRpcService |
SimpleCompositeRpcService.of(Iterable<CompositeServiceEntry<RpcService>> services)
Returns a new
SimpleCompositeRpcService that is composed of the specified entries. |
| Constructor and Description |
|---|
SimpleCompositeRpcService(Iterable<CompositeServiceEntry<RpcService>> services)
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ThrottlingRpcService
Decorates an RPC
Service to throttle incoming requests. |
| Modifier and Type | Method and Description |
|---|---|
static Function<? super RpcService,ThrottlingRpcService> |
ThrottlingRpcService.newDecorator(ThrottlingStrategy<RpcRequest> strategy)
Creates a new decorator using the specified
ThrottlingStrategy instance. |
| Constructor and Description |
|---|
ThrottlingRpcService(RpcService delegate,
ThrottlingStrategy<RpcRequest> strategy)
Creates a new instance that decorates the specified
Service. |
Copyright © 2020 LeanCloud. All rights reserved.