Enum Class DropPolicy

java.lang.Object
java.lang.Enum<DropPolicy>
codes.grow.packages.betterstack.logging.DropPolicy
All Implemented Interfaces:
Serializable, Comparable<DropPolicy>, Constable

public enum DropPolicy extends Enum<DropPolicy>
  • Enum Constant Details

    • DROP_NEWEST

      public static final DropPolicy DROP_NEWEST
      Drop the record being added ("drop_newest", default).
    • DROP_OLDEST

      public static final DropPolicy DROP_OLDEST
      Drop the oldest queued record to make room ("drop_oldest").
    • BLOCK

      public static final DropPolicy BLOCK
      Block the caller until there is room ("block"); never drops for a full queue (an interrupted caller drops its record with DropReason.QUEUE_FULL).
  • Method Details

    • values

      public static DropPolicy[] 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 DropPolicy 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
    • wireValue

      public String wireValue()
      Wire value.
      Returns:
      drop_newest, drop_oldest or block