public static class SimpleWindowPartitionCache.SimpleWindowPartitionCacheBuilder<K,V> extends Object implements WindowPartitionCache.Builder<K,V>
Constructor and Description |
---|
SimpleWindowPartitionCacheBuilder() |
Modifier and Type | Method and Description |
---|---|
SimpleWindowPartitionCache<K,V> |
build(WindowPartitionCache.CacheLoader<K,V> loader)
Build the cache.
|
SimpleWindowPartitionCache.SimpleWindowPartitionCacheBuilder<K,V> |
maximumSize(long size)
The maximum cache size.
|
SimpleWindowPartitionCache.SimpleWindowPartitionCacheBuilder<K,V> |
removalListener(WindowPartitionCache.RemovalListener<K,V> listener)
The
WindowPartitionCache.RemovalListener to be invoked when entries are evicted. |
public SimpleWindowPartitionCache.SimpleWindowPartitionCacheBuilder<K,V> maximumSize(long size)
WindowPartitionCache.Builder
maximumSize
in interface WindowPartitionCache.Builder<K,V>
size
- the sizepublic SimpleWindowPartitionCache.SimpleWindowPartitionCacheBuilder<K,V> removalListener(WindowPartitionCache.RemovalListener<K,V> listener)
WindowPartitionCache.Builder
WindowPartitionCache.RemovalListener
to be invoked when entries are evicted.removalListener
in interface WindowPartitionCache.Builder<K,V>
listener
- the listenerpublic SimpleWindowPartitionCache<K,V> build(WindowPartitionCache.CacheLoader<K,V> loader)
WindowPartitionCache.Builder
build
in interface WindowPartitionCache.Builder<K,V>
loader
- the WindowPartitionCache.CacheLoader
WindowPartitionCache
Copyright © 2023 The Apache Software Foundation. All rights reserved.