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 Details

    • TestPortalCacheListener

      public TestPortalCacheListener()
  • Method Details

    • 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 com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.liferay.portal.kernel.cache.PortalCacheListener<K extends Serializable,V>
      Throws:
      com.liferay.portal.kernel.cache.PortalCacheException
    • reset

      public void reset()