public class PortalCacheWrapper<K extends java.io.Serializable,V> extends java.lang.Object implements PortalCache<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected PortalCache<K,V> |
portalCache |
DEFAULT_TIME_TO_LIVE| Constructor and Description |
|---|
PortalCacheWrapper(PortalCache<K,V> portalCache) |
| Modifier and Type | Method and Description |
|---|---|
V |
get(K key) |
java.util.List<K> |
getKeys() |
java.lang.String |
getName()
Deprecated.
As of 7.0.0
|
PortalCacheManager<K,V> |
getPortalCacheManager() |
java.lang.String |
getPortalCacheName() |
PortalCache<K,V> |
getWrappedPortalCache() |
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() |
void |
setPortalCache(PortalCache<K,V> portalCache) |
void |
unregisterPortalCacheListener(PortalCacheListener<K,V> portalCacheListener) |
void |
unregisterPortalCacheListeners() |
protected PortalCache<K extends java.io.Serializable,V> portalCache
public PortalCacheWrapper(PortalCache<K,V> portalCache)
public V get(K key)
get in interface PortalCache<K extends java.io.Serializable,V>public java.util.List<K> getKeys()
getKeys in interface PortalCache<K extends java.io.Serializable,V>@Deprecated public java.lang.String getName()
getName in interface PortalCache<K extends java.io.Serializable,V>public PortalCacheManager<K,V> getPortalCacheManager()
getPortalCacheManager in interface PortalCache<K extends java.io.Serializable,V>public java.lang.String getPortalCacheName()
getPortalCacheName in interface PortalCache<K extends java.io.Serializable,V>public PortalCache<K,V> getWrappedPortalCache()
public void put(K key, V value)
put in interface PortalCache<K extends java.io.Serializable,V>public void put(K key, V value, int timeToLive)
put in interface PortalCache<K extends java.io.Serializable,V>public void registerPortalCacheListener(PortalCacheListener<K,V> portalCacheListener)
registerPortalCacheListener in interface PortalCache<K extends java.io.Serializable,V>public void registerPortalCacheListener(PortalCacheListener<K,V> portalCacheListener, PortalCacheListenerScope portalCacheListenerScope)
registerPortalCacheListener in interface PortalCache<K extends java.io.Serializable,V>public void remove(K key)
remove in interface PortalCache<K extends java.io.Serializable,V>public void removeAll()
removeAll in interface PortalCache<K extends java.io.Serializable,V>public void setPortalCache(PortalCache<K,V> portalCache)
public void unregisterPortalCacheListener(PortalCacheListener<K,V> portalCacheListener)
unregisterPortalCacheListener in interface PortalCache<K extends java.io.Serializable,V>public void unregisterPortalCacheListeners()
unregisterPortalCacheListeners in interface PortalCache<K extends java.io.Serializable,V>