org.ehcache.events
Class CacheEvents

java.lang.Object
  extended by org.ehcache.events.CacheEvents

public final class CacheEvents
extends java.lang.Object


Method Summary
static
<K,V> CacheEvent<K,V>
creation(K newKey, V newValue, Cache<K,V> source)
           
static
<K,V> CacheEvent<K,V>
eviction(K evictedKey, V evictedValue, Cache<K,V> source)
           
static
<K,V> CacheEvent<K,V>
expiry(K expiredKey, V expiredValue, Cache<K,V> source)
           
static
<K,V> StoreEventListener<K,V>
nullStoreEventListener()
           
static
<K,V> CacheEvent<K,V>
removal(K removedKey, V removedValue, Cache<K,V> source)
           
static
<K,V> CacheEvent<K,V>
update(K key, V oldValue, V newValue, Cache<K,V> source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

expiry

public static <K,V> CacheEvent<K,V> expiry(K expiredKey,
                                           V expiredValue,
                                           Cache<K,V> source)

eviction

public static <K,V> CacheEvent<K,V> eviction(K evictedKey,
                                             V evictedValue,
                                             Cache<K,V> source)

creation

public static <K,V> CacheEvent<K,V> creation(K newKey,
                                             V newValue,
                                             Cache<K,V> source)

removal

public static <K,V> CacheEvent<K,V> removal(K removedKey,
                                            V removedValue,
                                            Cache<K,V> source)

update

public static <K,V> CacheEvent<K,V> update(K key,
                                           V oldValue,
                                           V newValue,
                                           Cache<K,V> source)

nullStoreEventListener

public static <K,V> StoreEventListener<K,V> nullStoreEventListener()