public class EhcachePortalCacheListenerAdapter<K extends java.io.Serializable,V> extends java.lang.Object implements ConfigurableEhcachePortalCacheListener, com.liferay.portal.kernel.cache.PortalCacheListener<K,V>
Modifier and Type | Field and Description |
---|---|
protected net.sf.ehcache.event.CacheEventListener |
cacheEventListener |
Constructor and Description |
---|
EhcachePortalCacheListenerAdapter(net.sf.ehcache.event.CacheEventListener cacheEventListener) |
Modifier and Type | Method and Description |
---|---|
protected net.sf.ehcache.Element |
createElement(K key,
V value) |
void |
dispose() |
void |
notifyEntryEvicted(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache,
K key,
V value,
int timeToLive) |
void |
notifyEntryExpired(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache,
K key,
V value,
int timeToLive) |
void |
notifyEntryPut(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache,
K key,
V value,
int timeToLive) |
void |
notifyEntryRemoved(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache,
K key,
V value,
int timeToLive) |
void |
notifyEntryUpdated(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache,
K key,
V value,
int timeToLive) |
void |
notifyRemoveAll(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache) |
protected final net.sf.ehcache.event.CacheEventListener cacheEventListener
public EhcachePortalCacheListenerAdapter(net.sf.ehcache.event.CacheEventListener cacheEventListener)
public void dispose()
public void notifyEntryEvicted(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache, K key, V value, int timeToLive) throws com.liferay.portal.kernel.cache.PortalCacheException
public void notifyEntryExpired(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache, K key, V value, int timeToLive) throws com.liferay.portal.kernel.cache.PortalCacheException
public void notifyEntryPut(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache, K key, V value, int timeToLive) throws com.liferay.portal.kernel.cache.PortalCacheException
public void notifyEntryRemoved(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache, K key, V value, int timeToLive) throws com.liferay.portal.kernel.cache.PortalCacheException
public void notifyEntryUpdated(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache, K key, V value, int timeToLive) throws com.liferay.portal.kernel.cache.PortalCacheException
public void notifyRemoveAll(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache) throws com.liferay.portal.kernel.cache.PortalCacheException