Enum State

java.lang.Object
java.lang.Enum<State>
io.confluent.parallelconsumer.internal.State
All Implemented Interfaces:
Serializable, Comparable<State>, Constable

public enum State
extends Enum<State>
The run state of the controller.
  • Enum Constant Details

    • unused

      public static final State unused
    • running

      public static final State running
    • draining

      public static final State draining
      When draining, the system will stop polling for more records, but will attempt to process all already downloaded records. Note that if you choose to close without draining, records already processed will still be committed first before closing.
    • closing

      public static final State closing
    • closed

      public static final State closed
  • Method Details

    • values

      public static State[] 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 State 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