com.liferay.portal.kernel.cache
Class AggregatedCacheListener<K extends Serializable,V>
java.lang.Object
com.liferay.portal.kernel.cache.AggregatedCacheListener<K,V>
- All Implemented Interfaces:
- CacheListener<K,V>
public class AggregatedCacheListener<K extends Serializable,V>
- extends Object
- implements CacheListener<K,V>
|
Method Summary |
void |
addCacheListener(CacheListener<K,V> cacheListener)
|
void |
addCacheListener(CacheListener<K,V> cacheListener,
CacheListenerScope cacheListenerScope)
|
void |
clearAll()
|
void |
dispose()
|
Map<CacheListener<K,V>,CacheListenerScope> |
getCacheListeners()
|
boolean |
isEmpty()
|
static boolean |
isRemoteInvoke()
|
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)
|
void |
removeCacheListener(CacheListener<K,V> cacheListener)
|
static void |
setRemoteInvoke(boolean remoteInvoke)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggregatedCacheListener
public AggregatedCacheListener()
isRemoteInvoke
public static boolean isRemoteInvoke()
setRemoteInvoke
public static void setRemoteInvoke(boolean remoteInvoke)
addCacheListener
public void addCacheListener(CacheListener<K,V> cacheListener)
addCacheListener
public void addCacheListener(CacheListener<K,V> cacheListener,
CacheListenerScope cacheListenerScope)
clearAll
public void clearAll()
dispose
public void dispose()
- Specified by:
dispose in interface CacheListener<K extends Serializable,V>
getCacheListeners
public Map<CacheListener<K,V>,CacheListenerScope> getCacheListeners()
isEmpty
public boolean isEmpty()
notifyEntryEvicted
public void notifyEntryEvicted(PortalCache<K,V> portalCache,
K key,
V value,
int timeToLive)
throws PortalCacheException
- Specified by:
notifyEntryEvicted in interface CacheListener<K extends Serializable,V>
- Throws:
PortalCacheException
notifyEntryExpired
public void notifyEntryExpired(PortalCache<K,V> portalCache,
K key,
V value,
int timeToLive)
throws PortalCacheException
- Specified by:
notifyEntryExpired in interface CacheListener<K extends Serializable,V>
- Throws:
PortalCacheException
notifyEntryPut
public void notifyEntryPut(PortalCache<K,V> portalCache,
K key,
V value,
int timeToLive)
throws PortalCacheException
- Specified by:
notifyEntryPut in interface CacheListener<K extends Serializable,V>
- Throws:
PortalCacheException
notifyEntryRemoved
public void notifyEntryRemoved(PortalCache<K,V> portalCache,
K key,
V value,
int timeToLive)
throws PortalCacheException
- Specified by:
notifyEntryRemoved in interface CacheListener<K extends Serializable,V>
- Throws:
PortalCacheException
notifyEntryUpdated
public void notifyEntryUpdated(PortalCache<K,V> portalCache,
K key,
V value,
int timeToLive)
throws PortalCacheException
- Specified by:
notifyEntryUpdated in interface CacheListener<K extends Serializable,V>
- Throws:
PortalCacheException
notifyRemoveAll
public void notifyRemoveAll(PortalCache<K,V> portalCache)
throws PortalCacheException
- Specified by:
notifyRemoveAll in interface CacheListener<K extends Serializable,V>
- Throws:
PortalCacheException
removeCacheListener
public void removeCacheListener(CacheListener<K,V> cacheListener)