Package org.apache.storm.windowing.persistence

## Interface WindowPartitionCache.RemovalListener<K,​V>

- Type Parameters:
    `K` - the key type
    `V` - the value type
  Enclosing interface:
    WindowPartitionCache<K,​V>

      public static interface WindowPartitionCache.RemovalListener<K,​V>

  A callback interface for handling removal of events from the cache.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `onRemoval​(K key, V val, WindowPartitionCache.RemovalCause removalCause)` | The method that is invoked when an entry is removed from the cache.

- - ### Method Detail

    - #### onRemoval

          void onRemoval​(K key,
                         V val,
                         WindowPartitionCache.RemovalCause removalCause)

      The method that is invoked when an entry is removed from the cache.
      Parameters:
        `key` - the key of the entry that was removed
        `val` - the value of the entry that was removed
        `removalCause` - the `WindowPartitionCache.RemovalCause`