Class TestPortalCacheListener<K extends Serializable,V>
java.lang.Object
com.liferay.portal.cache.test.util.TestPortalCacheListener<K,V>
- All Implemented Interfaces:
com.liferay.portal.kernel.cache.PortalCacheListener<K,
V>
- Direct Known Subclasses:
TestPortalCacheReplicator
public class TestPortalCacheListener<K extends Serializable,V>
extends Object
implements com.liferay.portal.kernel.cache.PortalCacheListener<K,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
assertActionsCount
(int count) void
assertEvicted
(K key, V value, int timeToLive) void
assertExpired
(K key, V value, int timeToLive) void
void
void
void
assertRemoved
(K key, V value) void
assertRemoved
(K key, V value, int timeToLive) void
assertUpdated
(K key, V value) void
assertUpdated
(K key, V value, int timeToLive) 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) void
reset()
-
Constructor Details
-
TestPortalCacheListener
public TestPortalCacheListener()
-
-
Method Details
-
assertActionsCount
public void assertActionsCount(int count) -
assertEvicted
-
assertExpired
-
assertPut
-
assertPut
-
assertRemoveAll
public void assertRemoveAll() -
assertRemoved
-
assertRemoved
-
assertUpdated
-
assertUpdated
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.liferay.portal.kernel.cache.PortalCacheListener<K extends Serializable,
V>
-
notifyEntryEvicted
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- Specified by:
notifyEntryEvicted
in interfacecom.liferay.portal.kernel.cache.PortalCacheListener<K extends Serializable,
V> - Throws:
com.liferay.portal.kernel.cache.PortalCacheException
-
notifyEntryExpired
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- Specified by:
notifyEntryExpired
in interfacecom.liferay.portal.kernel.cache.PortalCacheListener<K extends Serializable,
V> - Throws:
com.liferay.portal.kernel.cache.PortalCacheException
-
notifyEntryPut
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- Specified by:
notifyEntryPut
in interfacecom.liferay.portal.kernel.cache.PortalCacheListener<K extends Serializable,
V> - Throws:
com.liferay.portal.kernel.cache.PortalCacheException
-
notifyEntryRemoved
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- Specified by:
notifyEntryRemoved
in interfacecom.liferay.portal.kernel.cache.PortalCacheListener<K extends Serializable,
V> - Throws:
com.liferay.portal.kernel.cache.PortalCacheException
-
notifyEntryUpdated
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- Specified by:
notifyEntryUpdated
in interfacecom.liferay.portal.kernel.cache.PortalCacheListener<K extends Serializable,
V> - Throws:
com.liferay.portal.kernel.cache.PortalCacheException
-
notifyRemoveAll
public void notifyRemoveAll(com.liferay.portal.kernel.cache.PortalCache<K, V> portalCache) throws com.liferay.portal.kernel.cache.PortalCacheException- Specified by:
notifyRemoveAll
in interfacecom.liferay.portal.kernel.cache.PortalCacheListener<K extends Serializable,
V> - Throws:
com.liferay.portal.kernel.cache.PortalCacheException
-
reset
public void reset()
-