Enum Class DuplicatePolicy

java.lang.Object
java.lang.Enum<DuplicatePolicy>
io.quarkus.redis.datasource.timeseries.DuplicatePolicy
All Implemented Interfaces:
Serializable, Comparable<DuplicatePolicy>, Constable

public enum DuplicatePolicy extends Enum<DuplicatePolicy>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    BLOCK: ignore any newly reported value and reply with an error
    FIRST: ignore any newly reported value
    LAST: override with the newly reported value
    MAX: only override if the value is higher than the existing value
    MIN: only override if the value is lower than the existing value
    SUM: If a previous sample exists, add the new sample to it so that the updated value is equal to (previous + new).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • BLOCK

      public static final DuplicatePolicy BLOCK
      BLOCK: ignore any newly reported value and reply with an error
    • FIRST

      public static final DuplicatePolicy FIRST
      FIRST: ignore any newly reported value
    • LAST

      public static final DuplicatePolicy LAST
      LAST: override with the newly reported value
    • MIN

      public static final DuplicatePolicy MIN
      MIN: only override if the value is lower than the existing value
    • MAX

      public static final DuplicatePolicy MAX
      MAX: only override if the value is higher than the existing value
    • SUM

      public static final DuplicatePolicy SUM
      SUM: If a previous sample exists, add the new sample to it so that the updated value is equal to (previous + new). If no previous sample exists, set the updated value equal to the new value.
  • Method Details

    • values

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

      public static DuplicatePolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null