Class RemovalListeners


  • @Beta
    public final class RemovalListeners
    extends Object
    A collection of common removal listeners.
    Since:
    10.0
    • Method Detail

      • asynchronous

        public static <K,​V> RemovalListener<K,​V> asynchronous​(RemovalListener<K,​V> listener,
                                                                          Executor executor)
        Returns a RemovalListener which processes all eviction notifications using executor.
        Parameters:
        listener - the backing listener
        executor - the executor with which removal notifications are asynchronously executed