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>
  • Enum Constant Details

    • DRAIN

      public static final DrainingCloseable.DrainingMode DRAIN
      Stop downloading more messages from the Broker, but finish processing what has already been queued.
    • DONT_DRAIN

      public static final DrainingCloseable.DrainingMode 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

      public static DrainingCloseable.DrainingMode[] 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

      public static DrainingCloseable.DrainingMode valueOf​(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null