ConnectionBackoffStrategy.
Further responsibilities such as communication with the opposite endpoint is delegated to the next executor in the request execution chain.
| Modifier and Type | Field and Description |
|---|---|
| private final BackoffManager | |
| private final ConnectionBackoffStrategy | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | BackoffStrategyExec(final ConnectionBackoffStrategy
the strategy to determine whether
to backoff based on the response or exception connectionBackoffStrategy, final BackoffManager the manager responsible for applying backoff
and probing actions to the HTTP routes backoffManager)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public ClassicHttpResponse | execute(final ClassicHttpRequest
the actual request. request, final ExecChain.the execution scope . scope,the next element in the request execution chain. chain)Implements org. |
| backoffManager | back to summary |
|---|---|
| private final BackoffManager backoffManager | |
| connectionBackoffStrategy | back to summary |
|---|---|
| private final ConnectionBackoffStrategy connectionBackoffStrategy | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| BackoffStrategyExec | back to summary |
|---|---|
| public BackoffStrategyExec(final ConnectionBackoffStrategy connectionBackoffStrategy, final BackoffManager backoffManager) Constructs a
| |
| execute | back to summary |
|---|---|
| public ClassicHttpResponse execute(final ClassicHttpRequest request, final ExecChain. Implements org. Doc from org. Executes the actual HTTP request. The handler can choose to return a response message or delegate request execution to the next element in the execution chain.
| |