| Interface | Description |
|---|---|
| Linked<T extends Linked<T>> |
An element that is linked on the
Deque. |
| Class | Description |
|---|---|
| BoundedPriorityQueue<E> |
有界优先队列
按照给定的排序规则,排序元素,当队列满时,按照给定的排序规则淘汰末尾元素(去除末尾元素) |
| CheckedLinkedBlockingQueue<E> |
自定义加入前检查的
LinkedBlockingQueue,给定一个检查函数,在加入元素前检查此函数原理是通过Runtime#freeMemory()获取剩余内存,当剩余内存低于指定的阈值时,不再加入。 |
| DiscardingQueue |
始终为空的队列,所有新增节点都丢弃
|
| LinkedDeque<E extends Linked<E>> |
Linked list implementation of the
Deque interface where the link
pointers are tightly integrated with the element. |
| MemorySafeLinkedBlockingQueue<E> |
内存安全的
LinkedBlockingQueue,可以解决OOM问题。 |
Queue相关封装Copyright © 2025. All rights reserved.