public interface StoreEventSink<K,V>
Store
operations are to record events.Modifier and Type | Method and Description |
---|---|
void |
created(K key,
V value)
Indicates a mapping was created.
|
void |
evicted(K key,
java.util.function.Supplier<V> value)
Indicates a mapping was evicted.
|
void |
expired(K key,
java.util.function.Supplier<V> value)
Indicates the mapping was expired.
|
void |
removed(K key,
java.util.function.Supplier<V> value)
Indicates the mapping was removed.
|
void |
updated(K key,
java.util.function.Supplier<V> oldValue,
V newValue)
Indicates the mapping was updated.
|
void removed(K key, java.util.function.Supplier<V> value)
key
- removed keyvalue
- value supplier of removed valuevoid updated(K key, java.util.function.Supplier<V> oldValue, V newValue)
key
- the updated keyoldValue
- value supplier of old valuenewValue
- the new valuevoid expired(K key, java.util.function.Supplier<V> value)
key
- the expired keyvalue
- value supplier of expired valuevoid created(K key, V value)
key
- the created keyvalue
- the created value