| Package | Description |
|---|---|
| com.linecorp.armeria.client |
Client core.
|
| com.linecorp.armeria.client.circuitbreaker |
Failure detection and fallback mechanism based on
circuit breaker pattern.
|
| com.linecorp.armeria.client.retry |
A
Client decorator that handles failures and retries requests. |
| com.linecorp.armeria.common |
Common types.
|
| com.linecorp.armeria.server |
Server core.
|
| com.linecorp.armeria.server.throttling |
Request throttling service decorators and strategies.
|
| Modifier and Type | Method and Description |
|---|---|
RpcRequest |
ClientRequestContext.rpcRequest()
Returns the
RpcRequest associated with this context, or null if there's no
RpcRequest associated with this context. |
| Modifier and Type | Method and Description |
|---|---|
static ClientRequestContextBuilder |
ClientRequestContext.builder(RpcRequest request,
String uri)
|
static ClientRequestContextBuilder |
ClientRequestContext.builder(RpcRequest request,
URI uri)
|
RpcResponse |
RpcClient.execute(ClientRequestContext ctx,
RpcRequest req) |
RpcResponse |
DecoratingRpcClientFunction.execute(RpcClient delegate,
ClientRequestContext ctx,
RpcRequest req)
|
default ClientRequestContext |
ClientRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq)
Creates a new
ClientRequestContext whose properties and Attributes are copied from this
ClientRequestContext, except having a different Request and its own RequestLog. |
ClientRequestContext |
DefaultClientRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq,
Endpoint endpoint) |
ClientRequestContext |
ClientRequestContextWrapper.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq,
Endpoint endpoint) |
ClientRequestContext |
ClientRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq,
Endpoint endpoint)
Creates a new
ClientRequestContext whose properties and Attributes are copied from this
ClientRequestContext, except having different Request, Endpoint and its own
RequestLog. |
static ClientRequestContextBuilder |
ClientRequestContextBuilder.of(RpcRequest request,
String uri)
Deprecated.
|
static ClientRequestContext |
ClientRequestContext.of(RpcRequest request,
String uri)
Returns a new
ClientRequestContext created from the specified RpcRequest and URI. |
static ClientRequestContextBuilder |
ClientRequestContextBuilder.of(RpcRequest request,
URI uri)
Deprecated.
|
static ClientRequestContext |
ClientRequestContext.of(RpcRequest request,
URI uri)
|
| Constructor and Description |
|---|
DefaultClientRequestContext(MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
HttpMethod method,
String path,
String query,
String fragment,
ClientOptions options,
HttpRequest req,
RpcRequest rpcReq,
long requestStartTimeNanos,
long requestStartTimeMicros)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected RpcResponse |
CircuitBreakerRpcClient.doExecute(ClientRequestContext ctx,
RpcRequest req,
CircuitBreaker circuitBreaker) |
| Modifier and Type | Method and Description |
|---|---|
protected RpcResponse |
RetryingRpcClient.doExecute(ClientRequestContext ctx,
RpcRequest req) |
protected static ClientRequestContext |
AbstractRetryingClient.newDerivedContext(ClientRequestContext ctx,
HttpRequest req,
RpcRequest rpcReq,
boolean initialAttempt)
Creates a new derived
ClientRequestContext, replacing the requests. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultRpcRequest
Deprecated.
Use the factory methods in
RpcRequest. |
| Modifier and Type | Method and Description |
|---|---|
static RpcRequest |
RpcRequest.of(Class<?> serviceType,
String method)
Creates a new instance with no parameter.
|
static RpcRequest |
RpcRequest.of(Class<?> serviceType,
String method,
Iterable<?> params)
Creates a new instance with the specified parameters.
|
static RpcRequest |
RpcRequest.of(Class<?> serviceType,
String method,
Object... params)
Creates a new instance with the specified parameters.
|
static RpcRequest |
RpcRequest.of(Class<?> serviceType,
String method,
Object parameter)
Creates a new instance with a single parameter.
|
RpcRequest |
RequestContextWrapper.rpcRequest() |
RpcRequest |
RequestContext.rpcRequest()
Returns the
RpcRequest associated with this context, or null if there's no
RpcRequest associated with this context. |
RpcRequest |
NonWrappingRequestContext.rpcRequest() |
protected RpcRequest |
AbstractRequestContextBuilder.rpcRequest()
Returns the
RpcRequest of the context. |
| Modifier and Type | Method and Description |
|---|---|
RequestContext |
RequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq)
Creates a new
RequestContext whose properties and RequestContext.attrs() are copied from this
RequestContext, except having a different pair of HttpRequest and RpcRequest
and its own RequestLog. |
void |
RequestContextWrapper.updateRpcRequest(RpcRequest rpcReq) |
void |
RequestContext.updateRpcRequest(RpcRequest rpcReq)
Replaces the
RpcRequest associated with this context with the specified one. |
void |
NonWrappingRequestContext.updateRpcRequest(RpcRequest rpcReq) |
| Constructor and Description |
|---|
AbstractRequestContextBuilder(boolean server,
RpcRequest rpcReq,
URI uri)
Creates a new builder with the specified
RpcRequest and URI. |
NonWrappingRequestContext(MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
HttpMethod method,
String path,
String query,
HttpRequest req,
RpcRequest rpcReq,
RequestContext rootAttributeMap)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
RpcRequest |
ServiceRequestContext.rpcRequest()
Returns the
RpcRequest associated with this context, or null if there's no
RpcRequest associated with this context. |
| Modifier and Type | Method and Description |
|---|---|
ServiceRequestContext |
ServiceRequestContextWrapper.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq) |
ServiceRequestContext |
ServiceRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq) |
ServiceRequestContext |
DefaultServiceRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq) |
RpcResponse |
DecoratingRpcServiceFunction.serve(RpcService delegate,
ServiceRequestContext ctx,
RpcRequest req)
Serves an incoming
RpcRequest. |
RpcResponse |
RpcService.serve(ServiceRequestContext ctx,
RpcRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected RpcResponse |
ThrottlingRpcService.onFailure(ServiceRequestContext ctx,
RpcRequest req,
Throwable cause)
Invoked when
req is throttled. |
| 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.