Liferay 7.0-ce-m3

com.liferay.portal.kernel.cache
Class AggregatedCacheListener<K extends Serializable,V>

java.lang.Object
  extended by 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>


Constructor Summary
AggregatedCacheListener()
           
 
Method Summary
 void addCacheListener(CacheListener<K,V> cacheListener)
           
 void addCacheListener(CacheListener<K,V> cacheListener, CacheListenerScope cacheListenerScope)
           
 void clearAll()
           
 Map<CacheListener<K,V>,CacheListenerScope> getCacheListeners()
           
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
 

Constructor Detail

AggregatedCacheListener

public AggregatedCacheListener()
Method Detail

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()

getCacheListeners

public Map<CacheListener<K,V>,CacheListenerScope> getCacheListeners()

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)

Liferay 7.0-ce-m3