Enum Class LicenseCounter.Reason

java.lang.Object
java.lang.Enum<LicenseCounter.Reason>
com.iizix.server.user.LicenseCounter.Reason
All Implemented Interfaces:
Serializable, Comparable<LicenseCounter.Reason>, Constable
Enclosing class:
LicenseCounter

public static enum LicenseCounter.Reason extends Enum<LicenseCounter.Reason>
Why a verdict is not a plain LicenseCounter.Verdict.ALLOW.
Author:
Christopher Mindus
  • Enum Constant Details

    • NONE

      public static final LicenseCounter.Reason NONE
      Nothing: within the licence.
    • OVER_LIMIT

      public static final LicenseCounter.Reason OVER_LIMIT
      Over maxUsers, up to the ceiling, inside a grace episode.
    • OVER_CEILING

      public static final LicenseCounter.Reason OVER_CEILING
      Over the ceiling maxUsers + max(1, maxUsers/10).
    • GRACE_ENDED

      public static final LicenseCounter.Reason GRACE_ENDED
      Over maxUsers after the grace episode ran out, before another may open.
    • UNLICENSED

      public static final LicenseCounter.Reason UNLICENSED
      The licence has not been valid for 14 days (8.4).
  • Method Details

    • values

      public static LicenseCounter.Reason[] 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 LicenseCounter.Reason 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