public class CacheExpiryEvent<K,V>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedHashMap<K,V> |
expiredEntries
Map of expired entries' keys to their values
|
private ExpiryCache<K,V> |
source
Cache object originating this event
|
Constructor and Description |
---|
CacheExpiryEvent(ExpiryCache<K,V> source,
java.util.LinkedHashMap<K,V> expiredEntries)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.LinkedHashMap<K,V> |
getExpiredEntries()
Get the map of expired entries' keys to their values.
|
Cache<K,V> |
getSource()
Get the source cache object which originated this event.
|
private final ExpiryCache<K,V> source
CacheExpiryEvent(ExpiryCache<K,V> source, java.util.LinkedHashMap<K,V> expiredEntries)
source
- Cache object originating this event.expiredEntries
- Map of expired entries' keys to their values.