Enum Class DrainingCloseable.DrainingMode
java.lang.Object
java.lang.Enum<DrainingCloseable.DrainingMode>
io.confluent.parallelconsumer.internal.DrainingCloseable.DrainingMode
- All Implemented Interfaces:
Serializable,Comparable<DrainingCloseable.DrainingMode>,Constable
- Enclosing interface:
- DrainingCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStop downloading more messages, and stop procesing more messages in the queue, but finish processing messages already being processed locally.Stop downloading more messages from the Broker, but finish processing what has already been queued. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DrainingCloseable.DrainingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DRAIN
Stop downloading more messages from the Broker, but finish processing what has already been queued. -
DONT_DRAIN
Stop downloading more messages, and stop procesing more messages in the queue, but finish processing messages already being processed locally.
-
-
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
-