Enum CheckpointMode

java.lang.Object
java.lang.Enum<CheckpointMode>
com.azure.spring.messaging.eventhubs.core.checkpoint.CheckpointMode
All Implemented Interfaces:
Serializable, Comparable<CheckpointMode>, java.lang.constant.Constable

public enum CheckpointMode extends Enum<CheckpointMode>
The offset commit behavior enumeration.
  • Enum Constant Details

    • RECORD

      public static final CheckpointMode RECORD
      Checkpoint after each processed record. Makes sense only if ListenerMode.RECORD is used.
    • BATCH

      public static final CheckpointMode BATCH
      Checkpoint after each processed batch of records.
    • MANUAL

      public static final CheckpointMode MANUAL
      User decide when to checkpoint manually
    • PARTITION_COUNT

      public static final CheckpointMode PARTITION_COUNT
      Checkpoint once for number of message specified by CheckpointConfig.getCount() ()} in each partition
    • TIME

      public static final CheckpointMode TIME
      Checkpoint once for each time interval specified by CheckpointConfig.getInterval() ()}
  • Method Details

    • values

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