public enum RequestFailureReason extends java.lang.Enum<RequestFailureReason>
RequestFailureException
(JetStream requests) or carried by a RequestFailureMessage (core requests) when
Options.Builder.advancedRequestBehavior() is enabled.| Enum Constant and Description |
|---|
CANCELLED
The request was cancelled for an unclassified reason.
|
CONNECTION_CLOSING
The in-flight request was cancelled by a disconnect, reconnect, or connection close.
|
NO_RESPONDERS
A 503 No Responders - nothing was subscribed to the subject (e.g.
|
SERVER_ERROR
The server reported an error via -ERR (permissions violation, max payload, ...); see lastError.
|
TIMEOUT
The request deadline elapsed with no reply (real server slowness or a short timeout).
|
| Modifier and Type | Method and Description |
|---|---|
static RequestFailureReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RequestFailureReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestFailureReason TIMEOUT
public static final RequestFailureReason CONNECTION_CLOSING
public static final RequestFailureReason NO_RESPONDERS
public static final RequestFailureReason SERVER_ERROR
public static final RequestFailureReason CANCELLED
public static RequestFailureReason[] values()
for (RequestFailureReason c : RequestFailureReason.values()) System.out.println(c);
public static RequestFailureReason valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null