Modifier and Type | Field and Description |
---|---|
static CancellationReason |
CANCELLED_VIA_CONTEXT
The user or some other code proactively cancelled the request by cancelling
it through its attached context.
|
static CancellationReason |
OTHER
For a different reason.
|
static CancellationReason |
SHUTDOWN
The SDK has been shut down already when this request is dispatched.
|
static CancellationReason |
STOPPED_LISTENING
The downstream consumer stopped listening for a result and therefore any further
processing is a waste of resources.
|
static CancellationReason |
TIMEOUT
The request ran into a timeout and is therefore cancelled before it got a chance
to complete.
|
static CancellationReason |
TOO_MANY_REQUESTS_IN_RETRY
If too many outstanding requests are waiting to be completed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
identifier()
Returns the identifier for this reason.
|
Object |
innerReason()
If applicable, returns an inner reason for the cancellation for additional context.
|
static CancellationReason |
noMoreRetries(RetryReason retryReason)
This cancellation reason indicates that no more retries were allowed based on the retry strategy.
|
String |
toString() |
public static final CancellationReason STOPPED_LISTENING
public static final CancellationReason TIMEOUT
public static final CancellationReason CANCELLED_VIA_CONTEXT
public static final CancellationReason SHUTDOWN
public static final CancellationReason OTHER
public static final CancellationReason TOO_MANY_REQUESTS_IN_RETRY
public static CancellationReason noMoreRetries(RetryReason retryReason)
retryReason
- the retry reason why it got sent into retry.public Object innerReason()
public String identifier()
Copyright © 2020 Couchbase, Inc.. All rights reserved.