- All Implemented Interfaces:
Serializable, Comparable<FloodfillReliability>, java.lang.constant.Constable
Reliability classification for floodfill peers based on proven request-handling history.
Floodfills start as UNKNOWN when they advertise the floodfill capability but have no verified lookup/store handling history. They are promoted through OK to GOOD based on successful lookup responses tracked in DBHistory.
This categorization is used to limit how many lookups are sent to unproven floodfills, preventing overload while still probing them sporadically.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHas demonstrated repeated failures to respond to lookups or stores.Has a proven track record of handling lookups and stores reliably.Has been probed and shown to respond to lookups reliably enough, but has not yet accumulated sufficient history for full trust.Advertises the floodfill capability but has no proven request-handling history.Method Summary
All MethodsModifier and TypeMethodDescriptionstatic FloodfillReliabilityReturns the enum constant of this class with the specified name.static FloodfillReliability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
BAD
Has demonstrated repeated failures to respond to lookups or stores. Excluded from tunnel building and lookup routing.UNKNOWN
Advertises the floodfill capability but has no proven request-handling history. Lookups are sent only sporadically (1 in N) to probe reliability.OK
Has been probed and shown to respond to lookups reliably enough, but has not yet accumulated sufficient history for full trust. Receives a moderate share of lookups.GOOD
Has a proven track record of handling lookups and stores reliably. Treated as a trusted floodfill; eligible for full lookup routing.
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