| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static class | |
| pack-priv static class | |
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final AtomicInteger | |
| pack-priv volatile boolean | |
| pack-priv final HttpClientImpl | |
| private final MultiExchange. | |
| pack-priv HttpRequestImpl | |
| pack-priv static final Logger | |
| pack-priv static final int | |
| pack-priv Exchange | |
| pack-priv final HttpClientImpl. | |
| private final List | |
| pack-priv final long | |
| private static final AtomicLong | |
| pack-priv AtomicReference | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv volatile int | |
| pack-priv Exchange | |
| pack-priv HttpRequestImpl | |
| pack-priv volatile AuthenticationFilter. | proxyauth
Filter fields. |
| pack-priv final PushGroup | |
| private final HttpRequestImpl | |
| pack-priv volatile HttpResponse | |
| pack-priv final HttpResponse. | |
| pack-priv volatile ResponseTimerEvent | |
| private static final boolean | RETRY_ALWAYS
True if ALL ( even non-idempotent ) requests can be automatic retried. |
| pack-priv static final boolean | RETRY_CONNECT
True if ConnectException should cause a retry. |
| pack-priv volatile AuthenticationFilter. | serverauth
Filter fields. |
| private final AtomicInteger | |
| private final HttpRequest |
| Access | Constructor and Description |
|---|---|
| pack-priv | MultiExchange(HttpRequest userRequest, HttpRequestImpl requestImpl, HttpClientImpl client, HttpResponse.
MultiExchange with one final response. |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public void | |
| public boolean | Returns: true if the exchange was cancelled, false otherwise.if true, and this exchange is not already
cancelled, this method will attempt to interrupt and cancel the
exchange. Otherwise, the exchange is allowed to proceed and this
method does nothing. mayInterruptIfRunning)Implements jdk. Used to relay a call from |
| pack-priv void | |
| private MultiExchange. | Returns: a non-null RetryContext which contains the result of retry eligibilitythe exception that caused the request to fail requestFailureCause, final Exchange<?> the Exchange exchg)This method determines if a failed request can be retried. |
| pack-priv HttpClientImpl | |
| private static boolean | |
| private void | |
| pack-priv synchronized Exchange | |
| private CompletableFuture | |
| private static boolean | isHttpMethodRetriable(HttpRequest request)
Returns true if the given request can be automatically retried. |
| private static boolean | |
| public <U> MinimalFuture | |
| public Optional | |
| pack-priv boolean | |
| private void | |
| public CompletableFuture | |
| private CompletableFuture | |
| private CompletableFuture | |
| private HttpRequestImpl | |
| private static boolean | |
| private CompletableFuture | |
| private void | |
| private HttpResponse | |
| pack-priv String | |
| private HttpTimeoutException | |
| pack-priv HttpClient. | |
| private CompletableFuture | |
| private Throwable |
| attempts | back to summary |
|---|---|
| pack-priv final AtomicInteger attempts | |
| cancelled | back to summary |
|---|---|
| pack-priv volatile boolean cancelled | |
| client | back to summary |
|---|---|
| pack-priv final HttpClientImpl client | |
| connectTimeout | back to summary |
|---|---|
| private final MultiExchange. | |
| currentreq | back to summary |
|---|---|
| pack-priv HttpRequestImpl currentreq | |
| debug | back to summary |
|---|---|
| pack-priv static final Logger debug | |
| DEFAULT_MAX_ATTEMPTS | back to summary |
|---|---|
| pack-priv static final int DEFAULT_MAX_ATTEMPTS | |
| exchange | back to summary |
|---|---|
| pack-priv Exchange<T> exchange | |
| executor | back to summary |
|---|---|
| pack-priv final HttpClientImpl. | |
| filters | back to summary |
|---|---|
| private final List<HeaderFilter> filters | |
| id | back to summary |
|---|---|
| pack-priv final long id | |
| IDS | back to summary |
|---|---|
| private static final AtomicLong IDS | |
| interrupted | back to summary |
|---|---|
| pack-priv AtomicReference<CancellationException> interrupted | |
| max_attempts | back to summary |
|---|---|
| pack-priv static final int max_attempts | |
| max_stream_limit_attempts | back to summary |
|---|---|
| pack-priv static final int max_stream_limit_attempts | |
| numberOfRedirects | back to summary |
|---|---|
| pack-priv volatile int numberOfRedirects | |
| previous | back to summary |
|---|---|
| pack-priv Exchange<T> previous | |
| previousreq | back to summary |
|---|---|
| pack-priv HttpRequestImpl previousreq | |
| proxyauth | back to summary |
|---|---|
| pack-priv volatile AuthenticationFilter. Filter fields. These are attached as required by filters and only used by the filter implementations. This could be generalised into Objects that are passed explicitly to the filters (one per MultiExchange object, and one per Exchange object possibly) | |
| pushGroup | back to summary |
|---|---|
| pack-priv final PushGroup<T> pushGroup | |
| request | back to summary |
|---|---|
| private final HttpRequestImpl request | |
| response | back to summary |
|---|---|
| pack-priv volatile HttpResponse<T> response | |
| responseHandler | back to summary |
|---|---|
| pack-priv final HttpResponse. | |
| responseTimerEvent | back to summary |
|---|---|
| pack-priv volatile ResponseTimerEvent responseTimerEvent | |
| RETRY_ALWAYS | back to summary |
|---|---|
| private static final boolean RETRY_ALWAYS True if ALL ( even non-idempotent ) requests can be automatic retried. | |
| RETRY_CONNECT | back to summary |
|---|---|
| pack-priv static final boolean RETRY_CONNECT True if ConnectException should cause a retry. Enabled by default | |
| serverauth | back to summary |
|---|---|
| pack-priv volatile AuthenticationFilter. Filter fields. These are attached as required by filters and only used by the filter implementations. This could be generalised into Objects that are passed explicitly to the filters (one per MultiExchange object, and one per Exchange object possibly) | |
| streamLimitRetries | back to summary |
|---|---|
| private final AtomicInteger streamLimitRetries | |
| userRequest | back to summary |
|---|---|
| private final HttpRequest userRequest | |
| MultiExchange | back to summary |
|---|---|
| pack-priv MultiExchange(HttpRequest userRequest, HttpRequestImpl requestImpl, HttpClientImpl client, HttpResponse. MultiExchange with one final response. | |
| bodyNotPermitted | back to summary |
|---|---|
| private static boolean bodyNotPermitted(Response r) | |
| cancel | back to summary |
|---|---|
| public void cancel(IOException cause) | |
| cancel | back to summary |
|---|---|
| public boolean cancel(boolean mayInterruptIfRunning) Implements jdk. Used to relay a call from
| |
| cancelTimer | back to summary |
|---|---|
| pack-priv void cancelTimer() | |
| checkRetryEligible | back to summary |
|---|---|
| private MultiExchange. This method determines if a failed request can be retried. The returned RetryContext
will contain the retry decision and the
underlying
cause (computed out of the given
| |
| client | back to summary |
|---|---|
| pack-priv HttpClientImpl client() | |
| disableRetryConnect | back to summary |
|---|---|
| private static boolean disableRetryConnect() | |
| ensureNoBody | back to summary |
|---|---|
| private void ensureNoBody(HttpHeaders headers) throws ProtocolException | |
| getExchange | back to summary |
|---|---|
| pack-priv synchronized Exchange | |
| handleNoBody | back to summary |
|---|---|
| private CompletableFuture | |
| isHttpMethodRetriable | back to summary |
|---|---|
| private static boolean isHttpMethodRetriable(HttpRequest request) Returns true if the given request can be automatically retried. | |
| isIdempotentRequest | back to summary |
|---|---|
| private static boolean isIdempotentRequest(HttpRequest request) Returns true is given request has an idempotent method. | |
| newMinimalFuture | back to summary |
|---|---|
| public <U> MinimalFuture | |
| remainingConnectTimeout | back to summary |
|---|---|
| public Optional | |
| requestCancelled | back to summary |
|---|---|
| pack-priv boolean requestCancelled() | |
| requestFilters | back to summary |
|---|---|
| private void requestFilters(HttpRequestImpl r) throws IOException | |
| responseAsync | back to summary |
|---|---|
| public CompletableFuture | |
| responseAsync0 | back to summary |
|---|---|
| private CompletableFuture | |
| responseAsyncImpl | back to summary |
|---|---|
| private CompletableFuture | |
| responseFilters | back to summary |
|---|---|
| private HttpRequestImpl responseFilters(Response response) throws IOException | |
| retryPostValue | back to summary |
|---|---|
| private static boolean retryPostValue() | |
| retryRequest | back to summary |
|---|---|
| private CompletableFuture | |
| setExchange | back to summary |
|---|---|
| private void setExchange(Exchange<T> exchange) | |
| setNewResponse | back to summary |
|---|---|
| private HttpResponse | |
| streamLimitState | back to summary |
|---|---|
| pack-priv String streamLimitState() | |
| toTimeoutException | back to summary |
|---|---|
| private HttpTimeoutException toTimeoutException(IOException ioe) | |
| version | back to summary |
|---|---|
| pack-priv HttpClient. | |
| whenCancelled | back to summary |
|---|---|
| private CompletableFuture | |
| wrapIfCancelled | back to summary |
|---|---|
| private Throwable wrapIfCancelled(Throwable cause) | |
| Modifier and Type | Field and Description |
|---|---|
| private final WeakReference |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | cancel(boolean mayInterruptIfRunning)
Implements jdk. Attempts to cancel execution of a task. |
| cancelableRef | back to summary |
|---|---|
| private final WeakReference<Cancelable> cancelableRef | |
| CancelableRef | back to summary |
|---|---|
| pack-priv CancelableRef(Cancelable cancelable) | |
| cancel | back to summary |
|---|---|
| public boolean cancel(boolean mayInterruptIfRunning) Implements jdk. Doc from jdk. Attempts to cancel execution of a task. This attempt may not succeed if the task has already completed, has already been cancelled, or could not be cancelled for some other reason.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Duration | |
| pack-priv final AtomicLong |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Duration | |
| pack-priv void |
| max | back to summary |
|---|---|
| pack-priv final Duration max | |
| startTime | back to summary |
|---|---|
| pack-priv final AtomicLong startTime | |
| ConnectTimeoutTracker | back to summary |
|---|---|
| pack-priv ConnectTimeoutTracker(Duration connectTimeout) | |
| getRemaining | back to summary |
|---|---|
| pack-priv Duration getRemaining() | |
| reset | back to summary |
|---|---|
| pack-priv void reset() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements java. Causes the Subscriber to (eventually) stop receiving messages. |
| public void | request(long n)
Implements java. Adds the given number |
| NullSubscription | back to summary |
|---|---|
| pack-priv NullSubscription() | |
| cancel | back to summary |
|---|---|
| public void cancel() Implements java. Doc from java. Causes the Subscriber to (eventually) stop receiving
messages. Implementation is best-effort -- additional
messages may be received after invoking this method.
A cancelled subscription need not ever receive an
| |
| request | back to summary |
|---|---|
| public void request(long n) Implements java. Doc from java. Adds the given number
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicInteger | reqAttemptCounter
Record Component accessed by reqAttemptCounter(). |
| private final Throwable | requestFailureCause
Record Component accessed by requestFailureCause(). |
| private final boolean | shouldResetConnectTimer
Record Component accessed by shouldResetConnectTimer(). |
| private final boolean | shouldRetry
Record Component accessed by shouldRetry(). |
| Access | Constructor and Description |
|---|---|
| private | RetryContext(Throwable requestFailureCause, boolean shouldRetry, AtomicInteger reqAttemptCounter, boolean shouldResetConnectTimer)
|
| Modifier and Type | Method and Description |
|---|---|
| private static MultiExchange. | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public AtomicInteger | |
| public Throwable | |
| public boolean | |
| public boolean | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| reqAttemptCounter | back to summary |
|---|---|
| private final AtomicInteger reqAttemptCounter Record Component accessed by reqAttemptCounter(). | |
| requestFailureCause | back to summary |
|---|---|
| private final Throwable requestFailureCause Record Component accessed by requestFailureCause(). | |
| shouldResetConnectTimer | back to summary |
|---|---|
| private final boolean shouldResetConnectTimer Record Component accessed by shouldResetConnectTimer(). | |
| shouldRetry | back to summary |
|---|---|
| private final boolean shouldRetry Record Component accessed by shouldRetry(). | |
| RetryContext | back to summary |
|---|---|
| private RetryContext(Throwable requestFailureCause, boolean shouldRetry, AtomicInteger reqAttemptCounter, boolean shouldResetConnectTimer) | |
| doNotRetry | back to summary |
|---|---|
| private static MultiExchange. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| reqAttemptCounter | back to summary |
|---|---|
| public AtomicInteger reqAttemptCounter() Record Component getter of reqAttemptCounter. | |
| requestFailureCause | back to summary |
|---|---|
| public Throwable requestFailureCause() Record Component getter of requestFailureCause. | |
| shouldResetConnectTimer | back to summary |
|---|---|
| public boolean shouldResetConnectTimer() Record Component getter of shouldResetConnectTimer. | |
| shouldRetry | back to summary |
|---|---|
| public boolean shouldRetry() Record Component getter of shouldRetry. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |