Interface WindowPartitionCache.Builder<K,V> 
- Type Parameters:
- K- the key type
- V- the value type
- All Known Implementing Classes:
- SimpleWindowPartitionCache.SimpleWindowPartitionCacheBuilder
- Enclosing interface:
- WindowPartitionCache<K,V> 
public static interface WindowPartitionCache.Builder<K,V> 
Builder interface for 
WindowPartitionCache.- 
Method SummaryModifier and TypeMethodDescriptionbuild(WindowPartitionCache.CacheLoader<K, V> loader) Build the cache.maximumSize(long size) The maximum cache size.removalListener(WindowPartitionCache.RemovalListener<K, V> listener) TheWindowPartitionCache.RemovalListenerto be invoked when entries are evicted.
- 
Method Details- 
maximumSizeThe maximum cache size. After this limit, entries are evicted from the cache.- Parameters:
- size- the size
- Returns:
- the Builder
 
- 
removalListenerWindowPartitionCache.Builder<K,V> removalListener(WindowPartitionCache.RemovalListener<K, V> listener) TheWindowPartitionCache.RemovalListenerto be invoked when entries are evicted.- Parameters:
- listener- the listener
- Returns:
- the builder
 
- 
buildBuild the cache.- Parameters:
- loader- the- WindowPartitionCache.CacheLoader
- Returns:
- the WindowPartitionCache
 
 
-