Uses of Class
com.couchbase.client.core.msg.CancellationReason
-
Packages that use CancellationReason Package Description com.couchbase.client.core.error com.couchbase.client.core.msg -
-
Uses of CancellationReason in com.couchbase.client.core.error
Methods in com.couchbase.client.core.error that return CancellationReason Modifier and Type Method Description CancellationReason
RequestCanceledException. reason()
Constructors in com.couchbase.client.core.error with parameters of type CancellationReason Constructor Description RequestCanceledException(String message, CancellationReason reason, CancellationErrorContext ctx)
-
Uses of CancellationReason in com.couchbase.client.core.msg
Fields in com.couchbase.client.core.msg declared as CancellationReason Modifier and Type Field 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 aTargetedRequest
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.Methods in com.couchbase.client.core.msg that return CancellationReason Modifier and Type Method Description CancellationReason
BaseRequest. cancellationReason()
CancellationReason
Request. cancellationReason()
If the request isRequest.cancelled()
, this returns the reason why.static CancellationReason
CancellationReason. noMoreRetries(RetryReason retryReason)
This cancellation reason indicates that no more retries were allowed based on the retry strategy.Methods in com.couchbase.client.core.msg with parameters of type CancellationReason Modifier and Type Method Description void
BaseRequest. cancel(CancellationReason reason, Function<Throwable,Throwable> exceptionTranslator)
default void
Request. cancel(CancellationReason reason)
Cancels this request.void
Request. cancel(CancellationReason reason, Function<Throwable,Throwable> exceptionTranslator)
Cancels this request, allowing the caller to customize the exception.
-