java.lang.Object
java.lang.Enum<TunnelCreatorConfig.LastChanceReason>
net.i2p.router.tunnel.TunnelCreatorConfig.LastChanceReason
- All Implemented Interfaces:
Serializable, Comparable<TunnelCreatorConfig.LastChanceReason>, java.lang.constant.Constable
- Enclosing class:
TunnelCreatorConfig
public static enum TunnelCreatorConfig.LastChanceReasonextends Enum<TunnelCreatorConfig.LastChanceReason>
Why a tunnel that would normally be dropped by the early-expiry gate was instead admitted for one last-chance test. The admission is a snapshot of intent taken when the pool offers the test, so the gate cannot silently revoke it mid-schedule.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNot admitted for a last-chance test (the default).Stale UNTESTED tunnel kept by the pool sweep for one first test.Method Summary
All MethodsModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TunnelCreatorConfig.LastChanceReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
NONE
Not admitted for a last-chance test (the default).STALE_UNTESTED
Stale UNTESTED tunnel kept by the pool sweep for one first test.
Method Details
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
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 nameNullPointerException- if the argument is null