@ThreadSafe
public interface EvictionListener<K,V>
The listener is invoked by ConcurrentLinkedHashMap
on a caller's
thread and will not block other threads from operating on the map. An
implementation should be aware that the caller's thread will not expect
long execution times or failures as a side effect of the listener being
notified. Execution safety and a fast turn around time can be achieved by
performing the operation asynchronously, such as by submitting a task to an
ExecutorService
.
Modifier and Type | Method and Description |
---|---|
void |
onEviction(K key,
V value)
A call-back notification that the entry was evicted.
|
Copyright © 2012–2015 OmniFaces. All rights reserved.