|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.internal.store.tiering.CompoundCachingTier<K,V>
public class CompoundCachingTier<K,V>
| Nested Class Summary | |
|---|---|
static class |
CompoundCachingTier.Provider
|
| Nested classes/interfaces inherited from interface org.ehcache.spi.cache.tiering.CachingTier |
|---|
CachingTier.InvalidationListener<K,V> |
| Constructor Summary | |
|---|---|
CompoundCachingTier(CachingTier<K,V> higher,
LowerCachingTier<K,V> lower)
|
|
| Method Summary | |
|---|---|
void |
clear()
Empty out the caching store. |
java.util.List<CacheConfigurationChangeListener> |
getConfigurationChangeListeners()
get the List CacheConfigurationChangeListener defined in the Store |
Store.ValueHolder<V> |
getOrComputeIfAbsent(K key,
Function<K,Store.ValueHolder<V>> source)
Either return the value holder currently in the caching tier, or compute and store it when it isn't present. |
void |
invalidate(K key)
Remove a mapping. |
void |
invalidate(K key,
NullaryFunction<K> function)
Remove a mapping, then call a function under the same lock scope irrespectively of a mapping being there or not. |
void |
setInvalidationListener(CachingTier.InvalidationListener<K,V> invalidationListener)
Set the caching tier's invalidation listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundCachingTier(CachingTier<K,V> higher,
LowerCachingTier<K,V> lower)
| Method Detail |
|---|
public Store.ValueHolder<V> getOrComputeIfAbsent(K key,
Function<K,Store.ValueHolder<V>> source)
throws CacheAccessException
CachingTier
getOrComputeIfAbsent in interface CachingTier<K,V>key - the key.source - the function that computes the value.
CacheAccessException
public void invalidate(K key)
throws CacheAccessException
CachingTier
invalidate in interface CachingTier<K,V>key - the key.
CacheAccessException
public void invalidate(K key,
NullaryFunction<K> function)
throws CacheAccessException
CachingTier
invalidate in interface CachingTier<K,V>key - the key.function - the function to call.
CacheAccessException
public void clear()
throws CacheAccessException
CachingTier
clear in interface CachingTier<K,V>CacheAccessExceptionpublic void setInvalidationListener(CachingTier.InvalidationListener<K,V> invalidationListener)
CachingTier
setInvalidationListener in interface CachingTier<K,V>invalidationListener - the listener.public java.util.List<CacheConfigurationChangeListener> getConfigurationChangeListeners()
ConfigurationChangeSupportList CacheConfigurationChangeListener defined in the Store
getConfigurationChangeListeners in interface ConfigurationChangeSupportCacheConfigurationChangeListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||