Package | Description |
---|---|
com.couchbase.client.core.error | |
com.couchbase.client.core.msg |
Modifier and Type | Method and Description |
---|---|
CancellationReason |
RequestCanceledException.reason() |
Constructor and Description |
---|
RequestCanceledException(String message,
CancellationReason reason,
CancellationErrorContext ctx) |
Modifier and Type | Field and Description |
---|---|
static CancellationReason |
CancellationReason.CANCELLED_VIA_CONTEXT
The user or some other code proactively cancelled the request by cancelling
it through its attached context.
|
static CancellationReason |
CancellationReason.OTHER
For a different reason.
|
static CancellationReason |
CancellationReason.SHUTDOWN
The SDK has been shut down already when this request is dispatched.
|
static CancellationReason |
CancellationReason.STOPPED_LISTENING
The downstream consumer stopped listening for a result and therefore any further
processing is a waste of resources.
|
static CancellationReason |
CancellationReason.TARGET_NODE_REMOVED
When a
TargetedRequest is dispatched but the list of nodes does not contain the target at all,
there is good chance that this request will not be able to make progress anymore so it will be cancelled. |
static CancellationReason |
CancellationReason.TIMEOUT
The request ran into a timeout and is therefore cancelled before it got a chance
to complete.
|
static CancellationReason |
CancellationReason.TOO_MANY_REQUESTS_IN_RETRY
If too many outstanding requests are waiting to be completed.
|
Modifier and Type | Method and Description |
---|---|
CancellationReason |
Request.cancellationReason()
If the request is
Request.cancelled() , this returns the reason why. |
CancellationReason |
BaseRequest.cancellationReason() |
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 |
---|---|
void |
Request.cancel(CancellationReason reason)
Cancels this request.
|
void |
BaseRequest.cancel(CancellationReason reason) |
Copyright © 2021 Couchbase, Inc.. All rights reserved.