Package io.kroxylicious.proxy.internal
Enum Class ClientConnectionStateMachine.DisconnectCause
java.lang.Object
java.lang.Enum<ClientConnectionStateMachine.DisconnectCause>
io.kroxylicious.proxy.internal.ClientConnectionStateMachine.DisconnectCause
- All Implemented Interfaces:
Serializable,Comparable<ClientConnectionStateMachine.DisconnectCause>,Constable
- Enclosing class:
ClientConnectionStateMachine
public static enum ClientConnectionStateMachine.DisconnectCause
extends Enum<ClientConnectionStateMachine.DisconnectCause>
Enumeration of disconnect causes for tracking client to proxy disconnections.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClient initiated connection closeConnection closed after graceful drain completed (all in-flight requests responded)Connection force-closed after drain timeout expiredConnection closed due to exceeding idle timeoutServer (backend Kafka broker) initiated connection close -
Method Summary
-
Enum Constant Details
-
IDLE_TIMEOUT
Connection closed due to exceeding idle timeout -
CLIENT_CLOSED
Client initiated connection close -
SERVER_CLOSED
Server (backend Kafka broker) initiated connection close -
DRAIN_COMPLETED
Connection closed after graceful drain completed (all in-flight requests responded) -
DRAIN_TIMEOUT
Connection force-closed after drain timeout expired
-
-
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
-
label
-