public static interface WindowPartitionCache.Builder<K,V>
Builder interface for WindowPartitionCache
.
Modifier and Type | Method and Description |
---|---|
WindowPartitionCache<K,V> |
build(WindowPartitionCache.CacheLoader<K,V> loader)
Build the cache.
|
WindowPartitionCache.Builder<K,V> |
maximumSize(long size)
The maximum cache size.
|
WindowPartitionCache.Builder<K,V> |
removalListener(WindowPartitionCache.RemovalListener<K,V> listener)
The
WindowPartitionCache.RemovalListener to be invoked when entries are evicted. |
WindowPartitionCache.Builder<K,V> maximumSize(long size)
The maximum cache size. After this limit, entries are evicted from the cache.
size
- the sizeWindowPartitionCache.Builder<K,V> removalListener(WindowPartitionCache.RemovalListener<K,V> listener)
The WindowPartitionCache.RemovalListener
to be invoked when entries are evicted.
listener
- the listenerWindowPartitionCache<K,V> build(WindowPartitionCache.CacheLoader<K,V> loader)
Build the cache.
loader
- the WindowPartitionCache.CacheLoader
WindowPartitionCache
Copyright © 2019 The Apache Software Foundation. All rights reserved.