@InterfaceStability.Evolving public enum FailureReason extends Enum<FailureReason>
Intended to be used in QueryResult.forFailure(FailureReason, String)
.
Enum Constant and Description |
---|
DOES_NOT_EXIST
The requested store partition does not exist at all.
|
NOT_ACTIVE
The query required to execute on an active task (via
StateQueryRequest.requireActive() ),
but while executing the query, the task was either a Standby task, or it was an Active task
not in the RUNNING state. |
NOT_PRESENT
Failure indicating that the requested store partition is not present on the local
KafkaStreams instance.
|
NOT_UP_TO_BOUND
Failure indicating that the store partition is not (yet) up to the desired bound.
|
STORE_EXCEPTION
The store that handled the query got an exception during query execution.
|
UNKNOWN_QUERY_TYPE
Failure indicating that the store doesn't know how to handle the given query.
|
Modifier and Type | Method and Description |
---|---|
static FailureReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FailureReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FailureReason UNKNOWN_QUERY_TYPE
public static final FailureReason NOT_ACTIVE
StateQueryRequest.requireActive()
),
but while executing the query, the task was either a Standby task, or it was an Active task
not in the RUNNING state. The failure message will contain the reason for the failure.
The caller should either try again later or try a different replica.
public static final FailureReason NOT_UP_TO_BOUND
public static final FailureReason NOT_PRESENT
public static final FailureReason DOES_NOT_EXIST
public static final FailureReason STORE_EXCEPTION
public static FailureReason[] values()
for (FailureReason c : FailureReason.values()) System.out.println(c);
public static FailureReason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null