public static enum CacheAdapter.CacheEvent extends Enum<CacheAdapter.CacheEvent>
Used to collect metrics.
Modifier and Type | Class and Description |
---|---|
static interface |
CacheAdapter.CacheEvent.Closeable
Close metric recording.
|
Modifier and Type | Field and Description |
---|---|
static CacheAdapter.CacheEvent.Closeable |
NOOP_CLOSEABLE
No-operation closeable.
|
static Function<CacheAdapter.CacheEvent,CacheAdapter.CacheEvent.Closeable> |
NOOP_HANDLER
No-operation metrics handler.
|
Modifier and Type | Method and Description |
---|---|
static CacheAdapter.CacheEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheAdapter.CacheEvent[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final CacheAdapter.CacheEvent HIT
public static final CacheAdapter.CacheEvent MISS
public static final CacheAdapter.CacheEvent GET
public static final CacheAdapter.CacheEvent SET
public static final CacheAdapter.CacheEvent REMOVE
public static final CacheAdapter.CacheEvent.Closeable NOOP_CLOSEABLE
public static final Function<CacheAdapter.CacheEvent,CacheAdapter.CacheEvent.Closeable> NOOP_HANDLER
public static CacheAdapter.CacheEvent[] values()
for (CacheAdapter.CacheEvent c : CacheAdapter.CacheEvent.values()) System.out.println(c);
public static CacheAdapter.CacheEvent valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null