|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.core.events.CacheEvents
public final class CacheEvents
Utility class for the creation of CacheEvent instances.
| Method Summary | ||
|---|---|---|
static
|
creation(K newKey,
V newValue,
Cache<K,V> source)
Creates a created CacheEvent. |
|
static
|
eviction(K evictedKey,
V evictedValue,
Cache<K,V> source)
Creates an evicted CacheEvent. |
|
static
|
expiry(K expiredKey,
V expiredValue,
Cache<K,V> source)
Creates an expired CacheEvent. |
|
static
|
removal(K removedKey,
V removedValue,
Cache<K,V> source)
Creates a removed CacheEvent. |
|
static
|
update(K key,
V oldValue,
V newValue,
Cache<K,V> source)
Creates an updated CacheEvent. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 source
public 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 source
public 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 source
public 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 source
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||