Package io.netty.handler.codec.http2
Enum Http2Exception.ShutdownHint
java.lang.Object
java.lang.Enum<Http2Exception.ShutdownHint>
io.netty.handler.codec.http2.Http2Exception.ShutdownHint
- All Implemented Interfaces:
Serializable
,Comparable<Http2Exception.ShutdownHint>
,java.lang.constant.Constable
- Enclosing class:
Http2Exception
Provides a hint as to if shutdown is justified, what type of shutdown should be executed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAttempt to execute a "graceful" shutdown.Close the channel immediately after aGOAWAY
is sent.Do not shutdown the underlying channel. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Http2Exception.ShutdownHint
Returns the enum constant of this type with the specified name.static Http2Exception.ShutdownHint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NO_SHUTDOWN
Do not shutdown the underlying channel. -
GRACEFUL_SHUTDOWN
Attempt to execute a "graceful" shutdown. The definition of "graceful" is left to the implementation. An example of "graceful" would be wait for some amount of time until all active streams are closed. -
HARD_SHUTDOWN
Close the channel immediately after aGOAWAY
is sent.
-
-
Constructor Details
-
ShutdownHint
private ShutdownHint()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-