All Implemented Interfaces:
EventListener , Consumer <javax.cache.Cache<K,V>> , javax.cache.event.CacheEntryCreatedListener<K,V> , javax.cache.event.CacheEntryExpiredListener<K,V> , javax.cache.event.CacheEntryListener<K,V> , javax.cache.event.CacheEntryRemovedListener<K,V>
public class CacheSizeManager <K,V>
extends Object
implements javax.cache.event.CacheEntryCreatedListener<K,V>, javax.cache.event.CacheEntryExpiredListener<K,V>, javax.cache.event.CacheEntryRemovedListener<K,V>, Consumer <javax.cache.Cache<K,V>>
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
void
void
onCreated (Iterable <javax.cache.event.CacheEntryEvent<? extends K ,? extends V >> cacheEntryEvents)
void
onExpired (Iterable <javax.cache.event.CacheEntryEvent<? extends K ,? extends V >> cacheEntryEvents)
void
onRemoved (Iterable <javax.cache.event.CacheEntryEvent<? extends K ,? extends V >> cacheEntryEvents)
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Method Details
onCreated
public void onCreated (Iterable <javax.cache.event.CacheEntryEvent<? extends K ,? extends V >> cacheEntryEvents)
throws javax.cache.event.CacheEntryListenerException
Specified by:
onCreated in interface javax.cache.event.CacheEntryCreatedListener<K ,V >
Throws:
javax.cache.event.CacheEntryListenerException
onExpired
public void onExpired (Iterable <javax.cache.event.CacheEntryEvent<? extends K ,? extends V >> cacheEntryEvents)
throws javax.cache.event.CacheEntryListenerException
Specified by:
onExpired in interface javax.cache.event.CacheEntryExpiredListener<K ,V >
Throws:
javax.cache.event.CacheEntryListenerException
onRemoved
public void onRemoved (Iterable <javax.cache.event.CacheEntryEvent<? extends K ,? extends V >> cacheEntryEvents)
throws javax.cache.event.CacheEntryListenerException
Specified by:
onRemoved in interface javax.cache.event.CacheEntryRemovedListener<K ,V >
Throws:
javax.cache.event.CacheEntryListenerException