K - the key typeV - the value typepublic static interface WindowPartitionCache.Builder<K,V>
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)
size - the sizeWindowPartitionCache.Builder<K,V> removalListener(WindowPartitionCache.RemovalListener<K,V> listener)
WindowPartitionCache.RemovalListener to be invoked when entries are evicted.listener - the listenerWindowPartitionCache<K,V> build(WindowPartitionCache.CacheLoader<K,V> loader)
loader - the WindowPartitionCache.CacheLoaderWindowPartitionCacheCopyright © 2023 The Apache Software Foundation. All rights reserved.