001
014
015 package com.liferay.portal.kernel.cache;
016
017 import java.io.Serializable;
018
019
023 public interface CacheListener<K extends Serializable, V> {
024
025 public void notifyEntryEvicted(
026 PortalCache<K, V> portalCache, K key, V value, int timeToLive)
027 throws PortalCacheException;
028
029 public void notifyEntryExpired(
030 PortalCache<K, V> portalCache, K key, V value, int timeToLive)
031 throws PortalCacheException;
032
033 public void notifyEntryPut(
034 PortalCache<K, V> portalCache, K key, V value, int timeToLive)
035 throws PortalCacheException;
036
037 public void notifyEntryRemoved(
038 PortalCache<K, V> portalCache, K key, V value, int timeToLive)
039 throws PortalCacheException;
040
041 public void notifyEntryUpdated(
042 PortalCache<K, V> portalCache, K key, V value, int timeToLive)
043 throws PortalCacheException;
044
045 public void notifyRemoveAll(PortalCache<K, V> portalCache)
046 throws PortalCacheException;
047
048 }