Interface CacheFlushListener<K,​V>

  • Type Parameters:
    K - key type
    V - value type

    public interface CacheFlushListener<K,​V>
    Listen to cache flush events
    • Method Detail

      • apply

        void apply​(K key,
                   V newValue,
                   V oldValue,
                   long timestamp)
        Called when records are flushed from the ThreadCache
        Parameters:
        key - key of the entry
        newValue - current value
        oldValue - previous value
        timestamp - timestamp of new value