Class SimpleWindowPartitionCache.SimpleWindowPartitionCacheBuilder<K,V> 
java.lang.Object
org.apache.storm.windowing.persistence.SimpleWindowPartitionCache.SimpleWindowPartitionCacheBuilder<K,V> 
- All Implemented Interfaces:
- WindowPartitionCache.Builder<K,- V> 
- Enclosing class:
- SimpleWindowPartitionCache<K,V> 
public static class SimpleWindowPartitionCache.SimpleWindowPartitionCacheBuilder<K,V> 
extends Object
implements WindowPartitionCache.Builder<K,V> 
- 
Constructor SummaryConstructors
- 
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.
- 
Constructor Details- 
SimpleWindowPartitionCacheBuilderpublic SimpleWindowPartitionCacheBuilder()
 
- 
- 
Method Details- 
maximumSizeDescription copied from interface:WindowPartitionCache.BuilderThe maximum cache size. After this limit, entries are evicted from the cache.- Specified by:
- maximumSizein interface- WindowPartitionCache.Builder<K,- V> 
- Parameters:
- size- the size
- Returns:
- the Builder
 
- 
removalListenerpublic SimpleWindowPartitionCache.SimpleWindowPartitionCacheBuilder<K,V> removalListener(WindowPartitionCache.RemovalListener<K, V> listener) Description copied from interface:WindowPartitionCache.BuilderTheWindowPartitionCache.RemovalListenerto be invoked when entries are evicted.- Specified by:
- removalListenerin interface- WindowPartitionCache.Builder<K,- V> 
- Parameters:
- listener- the listener
- Returns:
- the builder
 
- 
buildDescription copied from interface:WindowPartitionCache.BuilderBuild the cache.- Specified by:
- buildin interface- WindowPartitionCache.Builder<K,- V> 
- Parameters:
- loader- the- WindowPartitionCache.CacheLoader
- Returns:
- the WindowPartitionCache
 
 
-