public interface WindowPartitionCache<K,V>
A loading cache abstraction for caching WindowState.WindowPartition.
| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | WindowPartitionCache.Builder<K,V>Builder interface for  WindowPartitionCache. | 
| static interface  | WindowPartitionCache.CacheLoader<K,V>The interface for loading entires into the cache. | 
| static class  | WindowPartitionCache.RemovalCauseThe reason why an enrty got evicted from the cache. | 
| static interface  | WindowPartitionCache.RemovalListener<K,V>A callback interface for handling removal of events from the cache. | 
| Modifier and Type | Method and Description | 
|---|---|
| ConcurrentMap<K,V> | asMap()Return a  ConcurrentMapview of the current entries in the cache. | 
| V | get(K key)Get value from the cache or load the value. | 
| void | invalidate(K key)Invalidate an entry from the cache. | 
| V | pinAndGet(K key)Get value from the cache or load the value pinning it so that the entry will never get evicted. | 
| boolean | unpin(K key)Unpin an entry from the cache so that it can be a candidate for eviction. | 
V get(K key)
Get value from the cache or load the value.
key - the keyV pinAndGet(K key)
Get value from the cache or load the value pinning it so that the entry will never get evicted.
key - the keyboolean unpin(K key)
Unpin an entry from the cache so that it can be a candidate for eviction.
key - the keyConcurrentMap<K,V> asMap()
Return a ConcurrentMap view of the current entries in the cache.
void invalidate(K key)
Invalidate an entry from the cache.
key - the keyCopyright © 2019 The Apache Software Foundation. All rights reserved.