Enum Class RequestStatus
- All Implemented Interfaces:
Serializable,Comparable<RequestStatus>,Constable
The status of a single request sent by a
RequestExecutionEngine - what happened
when the engine tried to send it.
ExecutionStats.completed() counts RESPONDED results;
ExecutionStats.failed() counts all of TIMED_OUT,
CONNECTION_FAILED and DROPPED. Every request in a terminated run
has exactly one status, so requested() == completed() + failed().
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe request could not complete at the transport level - connection refused or reset, unknown host, TLS failure, or no usable response data.The request was never sent - it was abandoned because the run was cancelled before it left the queue.A response was received - any HTTP status code, including 4xx and 5xx.No response arrived within the timeout given tosendAll. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestStatusReturns the enum constant of this class with the specified name.static RequestStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESPONDED
A response was received - any HTTP status code, including 4xx and 5xx. A status code means an answer came back, so it is alwaysRESPONDED; only transport-level failures areTIMED_OUTorCONNECTION_FAILED. -
TIMED_OUT
No response arrived within the timeout given tosendAll. -
CONNECTION_FAILED
The request could not complete at the transport level - connection refused or reset, unknown host, TLS failure, or no usable response data. -
DROPPED
The request was never sent - it was abandoned because the run was cancelled before it left the queue. Dropped requests appear inRequestExecutionResult.results()but are not delivered to aResponseHandler.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-