public class DynamicPortalCache<K extends Serializable,V> extends Object implements PortalCache<K,V>
DEFAULT_TIME_TO_LIVE
Constructor and Description |
---|
DynamicPortalCache(PortalCacheManager<K,V> portalCacheManager,
PortalCache<K,V> portalCache,
String portalCacheName,
boolean blocking,
boolean mvcc) |
Modifier and Type | Method and Description |
---|---|
V |
get(K key) |
List<K> |
getKeys() |
String |
getName()
Deprecated.
As of Wilberforce (7.0.x), replaced by
getPortalCacheName() |
PortalCacheManager<K,V> |
getPortalCacheManager() |
String |
getPortalCacheName() |
protected boolean |
isBlocking() |
protected boolean |
isMVCC() |
void |
put(K key,
V value) |
void |
put(K key,
V value,
int timeToLive) |
void |
registerPortalCacheListener(PortalCacheListener<K,V> portalCacheListener) |
void |
registerPortalCacheListener(PortalCacheListener<K,V> portalCacheListener,
PortalCacheListenerScope portalCacheListenerScope) |
void |
remove(K key) |
void |
removeAll() |
protected void |
setPortalCache(PortalCache<K,V> portalCache) |
void |
unregisterPortalCacheListener(PortalCacheListener<K,V> portalCacheListener) |
void |
unregisterPortalCacheListeners() |
public DynamicPortalCache(PortalCacheManager<K,V> portalCacheManager, PortalCache<K,V> portalCache, String portalCacheName, boolean blocking, boolean mvcc)
public List<K> getKeys()
getKeys
in interface PortalCache<K extends Serializable,V>
@Deprecated public String getName()
getPortalCacheName()
getName
in interface PortalCache<K extends Serializable,V>
public PortalCacheManager<K,V> getPortalCacheManager()
getPortalCacheManager
in interface PortalCache<K extends Serializable,V>
public String getPortalCacheName()
getPortalCacheName
in interface PortalCache<K extends Serializable,V>
public void put(K key, V value)
put
in interface PortalCache<K extends Serializable,V>
public void put(K key, V value, int timeToLive)
put
in interface PortalCache<K extends Serializable,V>
public void registerPortalCacheListener(PortalCacheListener<K,V> portalCacheListener)
registerPortalCacheListener
in interface PortalCache<K extends Serializable,V>
public void registerPortalCacheListener(PortalCacheListener<K,V> portalCacheListener, PortalCacheListenerScope portalCacheListenerScope)
registerPortalCacheListener
in interface PortalCache<K extends Serializable,V>
public void remove(K key)
remove
in interface PortalCache<K extends Serializable,V>
public void removeAll()
removeAll
in interface PortalCache<K extends Serializable,V>
public void unregisterPortalCacheListener(PortalCacheListener<K,V> portalCacheListener)
unregisterPortalCacheListener
in interface PortalCache<K extends Serializable,V>
public void unregisterPortalCacheListeners()
unregisterPortalCacheListeners
in interface PortalCache<K extends Serializable,V>
protected boolean isBlocking()
protected boolean isMVCC()
protected void setPortalCache(PortalCache<K,V> portalCache)