public interface Policy
| Modifier and Type | Interface and Description |
|---|---|
static class |
Policy.Characteristic
The additional features supported.
|
static interface |
Policy.KeyOnlyPolicy
A policy that does not exploit external event metadata.
|
static interface |
Policy.PolicySpec
An optional annotation to declare additional capabilities.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
finished()
Indicates that the recording has completed.
|
default String |
name()
The annotated name.
|
void |
record(AccessEvent event)
Records that the entry was accessed.
|
PolicyStats |
stats()
Returns the cache efficiency statistics.
|
void record(AccessEvent event)
default void finished()
PolicyStats stats()
default String name()