K
- the key typeV
- the value typepublic interface HigherCachingTier<K,V> extends CachingTier<K,V>
CachingTier
.Modifier and Type | Interface and Description |
---|---|
static interface |
HigherCachingTier.Provider
Service interface for providing HigherCachingTier instances. |
CachingTier.InvalidationListener<K,V>
Modifier and Type | Method and Description |
---|---|
void |
silentInvalidate(K key,
java.util.function.Function<Store.ValueHolder<V>,java.lang.Void> function)
Removes a mapping without firing an invalidation event, then calls the function under the same lock scope
passing in the mapping or null if none was present.
|
void |
silentInvalidateAll(java.util.function.BiFunction<K,Store.ValueHolder<V>,java.lang.Void> biFunction)
Removes all mappings without firing an invalidation event instead invoking the provided function.
|
void |
silentInvalidateAllWithHash(long hash,
java.util.function.BiFunction<K,Store.ValueHolder<V>,java.lang.Void> biFunction)
Remove all mappings whose key have the specified hash code without firing an invalidation event instead
invoking the provided function.
|
clear, getOrComputeIfAbsent, getOrDefault, invalidate, invalidateAll, invalidateAllWithHash, setInvalidationListener
getConfigurationChangeListeners
void silentInvalidate(K key, java.util.function.Function<Store.ValueHolder<V>,java.lang.Void> function) throws StoreAccessException
key
- the keyfunction
- the function to callStoreAccessException
- if the mapping cannot be removed or the function throwsvoid silentInvalidateAll(java.util.function.BiFunction<K,Store.ValueHolder<V>,java.lang.Void> biFunction) throws StoreAccessException
biFunction
- the function to invoke for each mappingsStoreAccessException
- if mappings cannot be removed or the function throwsvoid silentInvalidateAllWithHash(long hash, java.util.function.BiFunction<K,Store.ValueHolder<V>,java.lang.Void> biFunction) throws StoreAccessException
StoreAccessException
- if mappings cannot be removed or the function throws