Enum 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
public static enum DrainingCloseable.DrainingMode extends Enum<DrainingCloseable.DrainingMode>
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description DONT_DRAINStop downloading more messages, and stop procesing more messages in the queue, but finish processing messages already being processed locally.DRAINStop downloading more messages from the Broker, but finish processing what has already been queued. -
Method Summary
Modifier and Type Method Description static DrainingCloseable.DrainingModevalueOf(String name)Returns the enum constant of this type with the specified name.static DrainingCloseable.DrainingMode[]values()Returns an array containing the constants of this enum type, 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 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
-