com.liferay.portal.cache.test
Class TestPortalCacheListener<K extends Serializable,V>
java.lang.Object
com.liferay.portal.cache.test.TestPortalCacheListener<K,V>
- All Implemented Interfaces:
- PortalCacheListener<K,V>
- Direct Known Subclasses:
- TestPortalCacheReplicator
public class TestPortalCacheListener<K extends Serializable,V>
- extends Object
- implements PortalCacheListener<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 |
TestPortalCacheListener
public TestPortalCacheListener()
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 PortalCacheListener<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 PortalCacheListener<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 PortalCacheListener<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 PortalCacheListener<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 PortalCacheListener<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 PortalCacheListener<K extends Serializable,V>
- Throws:
PortalCacheException
notifyRemoveAll
public void notifyRemoveAll(PortalCache<K,V> portalCache)
throws PortalCacheException
- Specified by:
notifyRemoveAll in interface PortalCacheListener<K extends Serializable,V>
- Throws:
PortalCacheException
reset
public void reset()