| 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 |
|---|---|
RpcResponse |
RpcClient.execute(ClientRequestContext ctx,
RpcRequest req) |
RpcResponse |
DecoratingRpcClientFunction.execute(RpcClient delegate,
ClientRequestContext ctx,
RpcRequest req)
|
| Modifier and Type | Method and Description |
|---|---|
protected RpcResponse |
CircuitBreakerRpcClient.doExecute(ClientRequestContext ctx,
RpcRequest req,
CircuitBreaker circuitBreaker) |
| Constructor and Description |
|---|
CircuitBreakerRpcClientBuilder(CircuitBreakerStrategyWithContent<RpcResponse> strategyWithContent)
|
| Modifier and Type | Method and Description |
|---|---|
protected RpcResponse |
RetryingRpcClient.doExecute(ClientRequestContext ctx,
RpcRequest req) |
| Modifier and Type | Method and Description |
|---|---|
static RetryingRpcClientBuilder |
RetryingRpcClient.builder(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent)
Returns a new
RetryingRpcClientBuilder with the specified RetryStrategyWithContent. |
static Function<? super RpcClient,RetryingRpcClient> |
RetryingRpcClient.newDecorator(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent)
Creates a new
RpcClient decorator that handles failures of an invocation and retries
RPC requests. |
static Function<? super RpcClient,RetryingRpcClient> |
RetryingRpcClient.newDecorator(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent,
int maxTotalAttempts)
Creates a new
RpcClient decorator that handles failures of an invocation and retries
RPC requests. |
static Function<? super RpcClient,RetryingRpcClient> |
RetryingRpcClient.newDecorator(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent,
int maxTotalAttempts,
long responseTimeoutMillisForEachAttempt)
Creates a new
RpcClient decorator that handles failures of an invocation and retries
RPC requests. |
| Constructor and Description |
|---|
RetryingRpcClientBuilder(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent)
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultRpcResponse
Default
RpcResponse implementation. |
| Modifier and Type | Method and Description |
|---|---|
static RpcResponse |
RpcResponse.from(CompletionStage<?> stage)
Creates a new
RpcResponse that is completed successfully or exceptionally based on the
completion of the specified CompletionStage. |
static RpcResponse |
RpcResponse.of(Object value)
Creates a new successfully complete
RpcResponse. |
static RpcResponse |
RpcResponse.ofFailure(Throwable cause)
Creates a new exceptionally complete
RpcResponse. |
| Modifier and Type | Method and Description |
|---|---|
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. |
Copyright © 2020 LeanCloud. All rights reserved.