java.lang.Object
java.lang.Enum<ProfileOrganizer.PurgeReason>
net.i2p.router.peermanager.ProfileOrganizer.PurgeReason
All Implemented Interfaces:
Serializable, Comparable<ProfileOrganizer.PurgeReason>, java.lang.constant.Constable
Enclosing class:
ProfileOrganizer

static enum ProfileOrganizer.PurgeReasonextends Enum<ProfileOrganizer.PurgeReason>
Why a peer was evicted from a tier.

Carries a stable lowercase key for the stat name. The whole point of counting these is to compare them across cycles, and a message that embeds a peer hash or a peer count would make every cycle a new stat name.

  • Enum Constant Details

  • Method Details

    • values

      public static ProfileOrganizer.PurgeReason[] 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 ProfileOrganizer.PurgeReason 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
    • getKey

      String getKey()
      The stat-name suffix identifying this reason.
      Returns:
      the lowercase key used in peer.tierEvicted.<key>