Enum Class TimesUnit

java.lang.Object
java.lang.Enum<TimesUnit>
org.graylog2.indexer.datastream.policy.actions.TimesUnit
All Implemented Interfaces:
Serializable, Comparable<TimesUnit>, Constable

public enum TimesUnit extends Enum<TimesUnit>
Formats time values using accepted OpenSearch values. ...
  • Enum Constant Details

    • DAYS

      public static final TimesUnit DAYS
    • HOURS

      public static final TimesUnit HOURS
    • MINUTES

      public static final TimesUnit MINUTES
    • SECONDS

      public static final TimesUnit SECONDS
    • MILLISECONDS

      public static final TimesUnit MILLISECONDS
    • MICROSECONDS

      public static final TimesUnit MICROSECONDS
    • NANOSECONDS

      public static final TimesUnit NANOSECONDS
  • Method Details

    • values

      public static TimesUnit[] 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 TimesUnit 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
    • format

      public String format(long size)