org.apache.storm.windowing.persistence

## Interface WindowPartitionCache.Builder<K,V>

- All Known Implementing Classes:
    SimpleWindowPartitionCache.SimpleWindowPartitionCacheBuilder
  Enclosing interface:
    WindowPartitionCache<K,V>

      public static interface WindowPartitionCache.Builder<K,V>

  Builder interface for `WindowPartitionCache`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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.

- - ### Method Detail

    - #### maximumSize

          WindowPartitionCache.Builder<K,V> maximumSize(long size)

      The maximum cache size. After this limit, entries are evicted from the cache.

      Parameters:
        `size` - the size
      Returns:
        the Builder

    - #### removalListener

          WindowPartitionCache.Builder<K,V> removalListener(WindowPartitionCache.RemovalListener<K,V> listener)

      The `WindowPartitionCache.RemovalListener` to be invoked when entries are evicted.

      Parameters:
        `listener` - the listener
      Returns:
        the builder

    - #### build

          WindowPartitionCache<K,V> build(WindowPartitionCache.CacheLoader<K,V> loader)

      Build the cache.

      Parameters:
        `loader` - the `WindowPartitionCache.CacheLoader`
      Returns:
        the `WindowPartitionCache`

Copyright © 2021 The Apache Software Foundation. All rights reserved.