com.liferay.portal.cache.test
Class TestCacheListener<K extends Serializable,V>
java.lang.Object
com.liferay.portal.cache.test.TestCacheListener<K,V>
- All Implemented Interfaces:
- CacheListener<K,V>
- Direct Known Subclasses:
- TestCacheReplicator
public class TestCacheListener<K extends Serializable,V>
- extends Object
- implements CacheListener<K,V>
|
Method Summary |
void |
assertActionsCount(int count)
|
void |
assertEvicted(K key,
V value,
int timeToLive)
|
void |
assertExpired(K key,
V value,
int timeToLive)
|
void |
assertPut(K key,
V value)
|
void |
assertPut(K key,
V value,
int timeToLive)
|
void |
assertRemoveAll()
|
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(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 |
reset()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestCacheListener
public TestCacheListener()
assertActionsCount
public void assertActionsCount(int count)
assertEvicted
public void assertEvicted(K key,
V value,
int timeToLive)
assertExpired
public void assertExpired(K key,
V value,
int timeToLive)
assertPut
public void assertPut(K key,
V value)
assertPut
public void assertPut(K key,
V value,
int timeToLive)
assertRemoveAll
public void assertRemoveAll()
assertRemoved
public void assertRemoved(K key,
V value)
assertRemoved
public void assertRemoved(K key,
V value,
int timeToLive)
assertUpdated
public void assertUpdated(K key,
V value)
assertUpdated
public void assertUpdated(K key,
V value,
int timeToLive)
dispose
public void dispose()
- Specified by:
dispose in interface CacheListener<K extends Serializable,V>
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
reset
public void reset()