Enum Class FcCacheMetrics.Outcome
- All Implemented Interfaces:
Serializable, Comparable<FcCacheMetrics.Outcome>, Constable
- Enclosing class:
FcCacheMetrics
Where a cache read was answered from, or that it was not.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionhitormiss- the label the hit ratio is computed from.getTier()L1,L2, ornonefor a miss.static FcCacheMetrics.OutcomeReturns the enum constant of this class with the specified name.static FcCacheMetrics.Outcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HIT_L1
Served from the in-memory tier (L1, or the whole cache for the in-memory processor). -
HIT_L2
Served from the on-disk tier (L2 - the Lucene index). -
MISS
Not cached: the caller goes to the origin.
-
-
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
-
getResult
hitormiss- the label the hit ratio is computed from. -
getTier
L1,L2, ornonefor a miss.
-