Liferay 7.0-ce-a2

com.liferay.portal.cache.test
Class TestPortalCache<K extends Serializable,V>

java.lang.Object
  extended by com.liferay.portal.kernel.cache.AbstractPortalCache<K,V>
      extended by com.liferay.portal.cache.test.TestPortalCache<K,V>
All Implemented Interfaces:
LowLevelCache<K,V>, PortalCache<K,V>

public class TestPortalCache<K extends Serializable,V>
extends AbstractPortalCache<K,V>


Field Summary
 
Fields inherited from class com.liferay.portal.kernel.cache.AbstractPortalCache
aggregatedPortalCacheListener
 
Fields inherited from interface com.liferay.portal.kernel.cache.PortalCache
DEFAULT_TIME_TO_LIVE
 
Constructor Summary
TestPortalCache(PortalCacheManager<K,V> portalCacheManager, String portalCacheName)
           
TestPortalCache(String portalCacheName)
           
 
Method Summary
protected  V doGet(K key)
           
protected  void doPut(K key, V value, int timeToLive)
           
protected  V doPutIfAbsent(K key, V value, int timeToLive)
           
protected  void doRemove(K key)
           
protected  boolean doRemove(K key, V value)
           
protected  V doReplace(K key, V value, int timeToLive)
           
protected  boolean doReplace(K key, V oldValue, V newValue, int timeToLive)
           
 List<K> getKeys()
           
 String getName()
          Deprecated. As of 7.0.0, replaced by getPortalCacheName()
 String getPortalCacheName()
           
 void removeAll()
           
 
Methods inherited from class com.liferay.portal.kernel.cache.AbstractPortalCache
get, getPortalCacheManager, put, put, putIfAbsent, putIfAbsent, registerPortalCacheListener, registerPortalCacheListener, remove, remove, replace, replace, replace, replace, unregisterPortalCacheListener, unregisterPortalCacheListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestPortalCache

public TestPortalCache(PortalCacheManager<K,V> portalCacheManager,
                       String portalCacheName)

TestPortalCache

public TestPortalCache(String portalCacheName)
Method Detail

getKeys

public List<K> getKeys()

getName

@Deprecated
public String getName()
Deprecated. As of 7.0.0, replaced by getPortalCacheName()

Specified by:
getName in interface PortalCache<K extends Serializable,V>
Overrides:
getName in class AbstractPortalCache<K extends Serializable,V>

getPortalCacheName

public String getPortalCacheName()

removeAll

public void removeAll()

doGet

protected V doGet(K key)
Specified by:
doGet in class AbstractPortalCache<K extends Serializable,V>

doPut

protected void doPut(K key,
                     V value,
                     int timeToLive)
Specified by:
doPut in class AbstractPortalCache<K extends Serializable,V>

doPutIfAbsent

protected V doPutIfAbsent(K key,
                          V value,
                          int timeToLive)
Specified by:
doPutIfAbsent in class AbstractPortalCache<K extends Serializable,V>

doRemove

protected void doRemove(K key)
Specified by:
doRemove in class AbstractPortalCache<K extends Serializable,V>

doRemove

protected boolean doRemove(K key,
                           V value)
Specified by:
doRemove in class AbstractPortalCache<K extends Serializable,V>

doReplace

protected V doReplace(K key,
                      V value,
                      int timeToLive)
Specified by:
doReplace in class AbstractPortalCache<K extends Serializable,V>

doReplace

protected boolean doReplace(K key,
                            V oldValue,
                            V newValue,
                            int timeToLive)
Specified by:
doReplace in class AbstractPortalCache<K extends Serializable,V>

Liferay 7.0-ce-a2