public abstract class AbstractPortalCache<K extends java.io.Serializable,V> extends java.lang.Object implements LowLevelCache<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected AggregatedPortalCacheListener<K,V> |
aggregatedPortalCacheListener |
DEFAULT_TIME_TO_LIVE| Constructor and Description |
|---|
AbstractPortalCache(PortalCacheManager<K,V> portalCacheManager) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract V |
doGet(K key) |
protected abstract void |
doPut(K key,
V value,
int timeToLive) |
protected abstract V |
doPutIfAbsent(K key,
V value,
int timeToLive) |
protected abstract void |
doRemove(K key) |
protected abstract boolean |
doRemove(K key,
V value) |
protected abstract V |
doReplace(K key,
V value,
int timeToLive) |
protected abstract boolean |
doReplace(K key,
V oldValue,
V newValue,
int timeToLive) |
V |
get(K key) |
java.lang.String |
getName()
Deprecated.
As of 7.0.0, replaced by
PortalCache.getPortalCacheName() |
PortalCacheManager<K,V> |
getPortalCacheManager() |
void |
put(K key,
V value) |
void |
put(K key,
V value,
int timeToLive) |
V |
putIfAbsent(K key,
V value) |
V |
putIfAbsent(K key,
V value,
int timeToLive) |
void |
registerPortalCacheListener(PortalCacheListener<K,V> portalCacheListener) |
void |
registerPortalCacheListener(PortalCacheListener<K,V> portalCacheListener,
PortalCacheListenerScope portalCacheListenerScope) |
void |
remove(K key) |
boolean |
remove(K key,
V value) |
V |
replace(K key,
V value) |
V |
replace(K key,
V value,
int timeToLive) |
boolean |
replace(K key,
V oldValue,
V newValue) |
boolean |
replace(K key,
V oldValue,
V newValue,
int timeToLive) |
void |
unregisterPortalCacheListener(PortalCacheListener<K,V> portalCacheListener) |
void |
unregisterPortalCacheListeners() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeys, getPortalCacheName, removeAllprotected final AggregatedPortalCacheListener<K extends java.io.Serializable,V> aggregatedPortalCacheListener
public AbstractPortalCache(PortalCacheManager<K,V> portalCacheManager)
public V get(K key)
get in interface PortalCache<K extends java.io.Serializable,V>@Deprecated public java.lang.String getName()
PortalCache.getPortalCacheName()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 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 V putIfAbsent(K key, V value)
putIfAbsent in interface LowLevelCache<K extends java.io.Serializable,V>public V putIfAbsent(K key, V value, int timeToLive)
putIfAbsent in interface LowLevelCache<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 boolean remove(K key, V value)
remove in interface LowLevelCache<K extends java.io.Serializable,V>public V replace(K key, V value)
replace in interface LowLevelCache<K extends java.io.Serializable,V>public V replace(K key, V value, int timeToLive)
replace in interface LowLevelCache<K extends java.io.Serializable,V>public boolean replace(K key, V oldValue, V newValue)
replace in interface LowLevelCache<K extends java.io.Serializable,V>public boolean replace(K key, V oldValue, V newValue, int timeToLive)
replace in interface LowLevelCache<K extends java.io.Serializable,V>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>protected abstract void doRemove(K key)