public final class CacheEvents
extends java.lang.Object
CacheEvent instances.| Modifier and Type | Method and Description | 
|---|---|
| static <K,V> CacheEvent<K,V> | creation(K newKey,
        V newValue,
        Cache<K,V> source)Creates a  createdCacheEvent. | 
| static <K,V> CacheEvent<K,V> | eviction(K evictedKey,
        V evictedValue,
        Cache<K,V> source)Creates an  evictedCacheEvent. | 
| static <K,V> CacheEvent<K,V> | expiry(K expiredKey,
      V expiredValue,
      Cache<K,V> source)Creates an  expiredCacheEvent. | 
| static <K,V> CacheEvent<K,V> | removal(K removedKey,
       V removedValue,
       Cache<K,V> source)Creates a  removedCacheEvent. | 
| static <K,V> CacheEvent<K,V> | update(K key,
      V oldValue,
      V newValue,
      Cache<K,V> source)Creates an  updatedCacheEvent. | 
public static <K,V> CacheEvent<K,V> expiry(K expiredKey, V expiredValue, Cache<K,V> source)
expired CacheEvent.K - the key typeV - the value typeexpiredKey - the key for which the mapping expiredexpiredValue - the expired valuesource - the event sourcepublic static <K,V> CacheEvent<K,V> eviction(K evictedKey, V evictedValue, Cache<K,V> source)
evicted CacheEvent.K - the key typeV - the value typeevictedKey - the key for which the mapping was evictedevictedValue - the evicted valuesource - the event sourcepublic static <K,V> CacheEvent<K,V> creation(K newKey, V newValue, Cache<K,V> source)
created CacheEvent.K - the key typeV - the value typenewKey - the new keynewValue - the new valuesource - the event sourcepublic static <K,V> CacheEvent<K,V> removal(K removedKey, V removedValue, Cache<K,V> source)
removed CacheEvent.K - the key typeV - the value typeremovedKey - the removed keyremovedValue - the removed valuesource - the event sourcepublic static <K,V> CacheEvent<K,V> update(K key, V oldValue, V newValue, Cache<K,V> source)
updated CacheEvent.K - the key typeV - the value typekey - the key for which the mapping was updatedoldValue - the old valuenewValue - the new valuesource - the event source