Uses of Class
com.couchbase.client.core.msg.CancellationReason
Package
Description
-
Uses of CancellationReason in com.couchbase.client.core.error
ModifierConstructorDescriptionRequestCanceledException
(String message, CancellationReason reason, CancellationErrorContext ctx) RequestCanceledException
(String message, CancellationReason reason, Throwable cause, CancellationErrorContext ctx) -
Uses of CancellationReason in com.couchbase.client.core.msg
Modifier and TypeFieldDescriptionstatic final CancellationReason
CancellationReason.CANCELLED_VIA_CONTEXT
The user or some other code proactively cancelled the request by cancelling it through its attached context.static final CancellationReason
CancellationReason.OTHER
For a different reason.static final CancellationReason
CancellationReason.SERVER_CANCELLED
The server reported that it cancelled the request.static final CancellationReason
CancellationReason.SHUTDOWN
The SDK has been shut down already when this request is dispatched.static final CancellationReason
CancellationReason.STOPPED_LISTENING
The downstream consumer stopped listening for a result and therefore any further processing is a waste of resources.static final 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 final CancellationReason
CancellationReason.TIMEOUT
The request ran into a timeout and is therefore cancelled before it got a chance to complete.static final CancellationReason
CancellationReason.TOO_MANY_REQUESTS_IN_RETRY
If too many outstanding requests are waiting to be completed.Modifier and TypeMethodDescriptionBaseRequest.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.Modifier and TypeMethodDescriptionvoid
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. -
Uses of CancellationReason in com.couchbase.client.core.protostellar
Modifier and TypeMethodDescriptionProtostellarBaseRequest.cancellationReason()
ProtostellarRequest.cancellationReason()
Modifier and TypeMethodDescriptionvoid
ProtostellarBaseRequest.cancel
(CancellationReason reason, Function<Throwable, Throwable> exceptionTranslator) ProtostellarRequest.cancel
(CancellationReason reason)