Interface EvictingQueue.EvictionListener<E>
- Type Parameters:
E- element type | 元素类型
- Enclosing class:
EvictingQueue<E>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Listener for element eviction events.
元素淘汰事件的监听器。
- Since:
- JDK 25, opencode-base-collections V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidonEviction(E evicted) Called when an element is evicted from the queue.
-
Method Details
-
onEviction
Called when an element is evicted from the queue. 当元素从队列中被淘汰时调用。- Parameters:
evicted- the evicted element | 被淘汰的元素
-