Package com.liferay.portal.kernel.cache
Interface PortalCacheListener<K extends Serializable,V>
public interface PortalCacheListener<K extends Serializable,V>
- Author:
- Edward Han, Shuyang Zhou
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
notifyEntryEvicted
(PortalCache<K, V> portalCache, K key, V value, int timeToLive) void
notifyEntryExpired
(PortalCache<K, V> portalCache, K key, V value, int timeToLive) void
notifyEntryPut
(PortalCache<K, V> portalCache, K key, V value, int timeToLive) void
notifyEntryRemoved
(PortalCache<K, V> portalCache, K key, V value, int timeToLive) void
notifyEntryUpdated
(PortalCache<K, V> portalCache, K key, V value, int timeToLive) void
notifyRemoveAll
(PortalCache<K, V> portalCache)
-
Method Details
-
dispose
void dispose() -
notifyEntryEvicted
void notifyEntryEvicted(PortalCache<K, V> portalCache, K key, V value, int timeToLive) throws PortalCacheException- Throws:
PortalCacheException
-
notifyEntryExpired
void notifyEntryExpired(PortalCache<K, V> portalCache, K key, V value, int timeToLive) throws PortalCacheException- Throws:
PortalCacheException
-
notifyEntryPut
void notifyEntryPut(PortalCache<K, V> portalCache, K key, V value, int timeToLive) throws PortalCacheException- Throws:
PortalCacheException
-
notifyEntryRemoved
void notifyEntryRemoved(PortalCache<K, V> portalCache, K key, V value, int timeToLive) throws PortalCacheException- Throws:
PortalCacheException
-
notifyEntryUpdated
void notifyEntryUpdated(PortalCache<K, V> portalCache, K key, V value, int timeToLive) throws PortalCacheException- Throws:
PortalCacheException
-
notifyRemoveAll
- Throws:
PortalCacheException
-