Package org.eclipse.jetty.http2.server
Enum HttpTransportOverHTTP2.State
- java.lang.Object
-
- java.lang.Enum<HttpTransportOverHTTP2.State>
-
- org.eclipse.jetty.http2.server.HttpTransportOverHTTP2.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpTransportOverHTTP2.State>
- Enclosing class:
- HttpTransportOverHTTP2
private static enum HttpTransportOverHTTP2.State extends java.lang.Enum<HttpTransportOverHTTP2.State>
Send states for
HttpTransportOverHTTP2.TransportCallback
.- See Also:
HttpTransportOverHTTP2.TransportCallback
-
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpTransportOverHTTP2.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpTransportOverHTTP2.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE
public static final HttpTransportOverHTTP2.State IDLE
No send initiated or in progress.
-
SENDING
public static final HttpTransportOverHTTP2.State SENDING
A send is initiated and possibly in progress.
-
FAILED
public static final HttpTransportOverHTTP2.State FAILED
The terminal state indicating failure of the send.
-
-
Method Detail
-
values
public static HttpTransportOverHTTP2.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpTransportOverHTTP2.State c : HttpTransportOverHTTP2.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpTransportOverHTTP2.State valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-