| Package | Description |
|---|---|
| com.couchbase.client.core.retry |
| Modifier and Type | Method and Description |
|---|---|
static RetryAction |
RetryAction.noRetry()
Constructs a new
RetryAction indicating that the request should not be retried. |
static RetryAction |
RetryAction.noRetry(Function<Throwable,Throwable> exceptionTranslator)
Constructs a new
RetryAction indicating that the request should not be retried,
and a specific exception should be used to fail the request. |
static RetryAction |
RetryAction.withDuration(Duration duration)
Constructs a new
RetryAction indicating that the request should be retried after the given duration. |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<RetryAction> |
FailFastRetryStrategy.shouldRetry(Request<? extends Response> request,
RetryReason reason) |
CompletableFuture<RetryAction> |
BestEffortRetryStrategy.shouldRetry(Request<? extends Response> request,
RetryReason reason)
Determines if a request should be retried or not (and if so, after which duration).
|
CompletableFuture<RetryAction> |
RetryStrategy.shouldRetry(Request<? extends Response> request,
RetryReason reason)
Checks if the given request should be retried and how long the
retry delay should be.
|
Copyright © 2024 Couchbase, Inc.. All rights reserved.