Enum Class MetricsCollector.TransportFailureReason
java.lang.Object
java.lang.Enum<MetricsCollector.TransportFailureReason>
com.soklet.MetricsCollector.TransportFailureReason
- All Implemented Interfaces:
Serializable, Comparable<MetricsCollector.TransportFailureReason>, Constable
- Enclosing interface:
MetricsCollector
public static enum MetricsCollector.TransportFailureReason
extends Enum<MetricsCollector.TransportFailureReason>
Low-level server transport failure reasons.
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA server accept loop failed while accepting or preparing a connection.An accepted connection could not be prepared before request handling began.A transport event-loop terminated after an unrecoverable error.A request could not be parsed by the transport.A socket read failed.A connection registration failed.A request header/body read timed out.A request-timeout callback failed.A request exceeded configured transport limits.A response-ready callback failed before the response could be written.A non-streaming response made no write progress before its idle timeout.A response-write-idle-timeout callback failed.A selection-key dispatch failed.A transport event-loop task failed.A timeout scheduler task failed.The transport reported a failure that Soklet does not classify.A response write failed.A socket write made no progress before its timeout. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
REQUEST_READ_TIMEOUT
A request header/body read timed out. -
REQUEST_TOO_LARGE
A request exceeded configured transport limits. -
MALFORMED_REQUEST
A request could not be parsed by the transport. -
READ_ERROR
A socket read failed. -
WRITE_ERROR
A response write failed. -
RESPONSE_WRITE_IDLE_TIMEOUT
A non-streaming response made no write progress before its idle timeout. -
RESPONSE_READY_ERROR
A response-ready callback failed before the response could be written. -
REQUEST_READ_TIMEOUT_ERROR
A request-timeout callback failed. -
RESPONSE_WRITE_IDLE_TIMEOUT_ERROR
A response-write-idle-timeout callback failed. -
ACCEPT_LOOP_ERROR
A server accept loop failed while accepting or preparing a connection. -
CONNECTION_SETUP_ERROR
An accepted connection could not be prepared before request handling began. -
TASK_ERROR
A transport event-loop task failed. -
TIMEOUT_TASK_ERROR
A timeout scheduler task failed. -
SELECTION_KEY_ERROR
A selection-key dispatch failed. -
REGISTER_ERROR
A connection registration failed. -
WRITE_TIMEOUT
A socket write made no progress before its timeout. -
EVENT_LOOP_TERMINATED
A transport event-loop terminated after an unrecoverable error. -
UNKNOWN
The transport reported a failure that Soklet does not classify.
-
-
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
-