Modifier and Type | Method and Description |
---|---|
RetryReason |
RequestNotRetriedEvent.retryReason() |
RetryReason |
RequestRetryScheduledEvent.retryReason() |
Constructor and Description |
---|
PreparedStatementRetriedEvent(Duration duration,
RequestContext context,
RetryReason retryReason,
Throwable cause) |
RequestNotRetriedEvent(Event.Severity severity,
Class<? extends Request> clazz,
RequestContext context,
RetryReason reason,
Throwable throwable) |
RequestRetryScheduledEvent(Duration duration,
RequestContext context,
Class<?> request,
RetryReason reason) |
Modifier and Type | Method and Description |
---|---|
Set<RetryReason> |
TimeoutException.retryReasons()
Returns the set of retry reasons for request.
|
Modifier and Type | Method and Description |
---|---|
protected Optional<RetryReason> |
AnalyticsMessageHandler.qualifiesForRetry(CouchbaseException exception) |
Modifier and Type | Method and Description |
---|---|
protected Optional<RetryReason> |
ChunkedMessageHandler.qualifiesForRetry(CouchbaseException exception)
Can be implemented by children to not fail a request but rather send it into retry.
|
Modifier and Type | Method and Description |
---|---|
protected Optional<RetryReason> |
QueryMessageHandler.qualifiesForRetry(CouchbaseException exception) |
Modifier and Type | Method and Description |
---|---|
Set<RetryReason> |
RequestContext.retryReasons() |
Modifier and Type | Method and Description |
---|---|
RequestContext |
RequestContext.incrementRetryAttempts(Duration lastRetryDuration,
RetryReason reason) |
static CancellationReason |
CancellationReason.noMoreRetries(RetryReason retryReason)
This cancellation reason indicates that no more retries were allowed based on the retry strategy.
|
Modifier and Type | Method and Description |
---|---|
static RetryReason |
RetryReason.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetryReason[] |
RetryReason.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static void |
RetryOrchestrator.maybeRetry(CoreContext ctx,
Request<? extends Response> request,
RetryReason reason)
Retry or cancel the given request, depending on its state and the configured
RetryStrategy . |
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.