Adds an asJava
method that wraps a Mango RemovalNotification[K, V] => Unit
in a
Guava RemovalListener[K, V]
.
Adds an asJava
method that wraps a Mango RemovalNotification[K, V] => Unit
in a
Guava RemovalListener[K, V]
.
The returned Guava RemovalCause
forwards all method calls to the provided
Mango RemovalNotification[K, V] => Unit
.
the Mango RemovalNotification[K, V] => Unit
to wrap in a Guava RemovalListener
An object with an asJava
method that returns a Guava RemovalListener
view of the argument
A function
RemovalNotification[K, V] => Unit
that can receive a notification when an entry is removed from a cache. The removal resulting in notification could have occured to an entry being manually removed or replaced, or due to eviction resulting from timed expiration, exceeding a maximum size, or garbage collection.An instance may be called concurrently by multiple threads to process different entries. Implementations of
RemovalListener
should avoid performing blocking calls or synchronizing on shared resources.0.7