Uses of Class
com.couchbase.client.core.msg.CancellationReason
Packages that use CancellationReason
Package
Description
-
Uses of CancellationReason in com.couchbase.client.core.error
Methods in com.couchbase.client.core.error that return CancellationReasonConstructors in com.couchbase.client.core.error with parameters of type CancellationReasonModifierConstructorDescriptionRequestCanceledException
(String message, CancellationReason reason, CancellationErrorContext ctx) RequestCanceledException
(String message, CancellationReason reason, Throwable cause, CancellationErrorContext ctx) -
Uses of CancellationReason in com.couchbase.client.core.msg
Fields in com.couchbase.client.core.msg declared as CancellationReasonModifier 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.Methods in com.couchbase.client.core.msg that return CancellationReasonModifier 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.Methods in com.couchbase.client.core.msg with parameters of type CancellationReasonModifier 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
Methods in com.couchbase.client.core.protostellar that return CancellationReasonModifier and TypeMethodDescriptionProtostellarBaseRequest.cancellationReason()
ProtostellarRequest.cancellationReason()
Methods in com.couchbase.client.core.protostellar with parameters of type CancellationReasonModifier and TypeMethodDescriptionvoid
ProtostellarBaseRequest.cancel
(CancellationReason reason, Function<Throwable, Throwable> exceptionTranslator) ProtostellarRequest.cancel
(CancellationReason reason)