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.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> |
RetryStrategy.shouldRetry(Request<? extends Response> request,
RetryReason reason)
Checks if the given request should be retried and how long the
retry delay should be.
|
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).
|
Copyright © 2020 Couchbase, Inc.. All rights reserved.