mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Update delayqueue-source-code.md
This commit is contained in:
parent
ae8ae6cd32
commit
4e5f88d89d
@ -115,7 +115,7 @@ Task 3
|
||||
|
||||
## DelayQueue 源码解析
|
||||
|
||||
这里以 JDK1.8 为例,分析一下 `LinkedList` 的底层核心源码。
|
||||
这里以 JDK1.8 为例,分析一下 `DelayQueue` 的底层核心源码。
|
||||
|
||||
`DelayQueue` 的类定义如下:
|
||||
|
||||
@ -126,7 +126,7 @@ public class DelayQueue<E extends Delayed> extends AbstractQueue<E> implements B
|
||||
}
|
||||
```
|
||||
|
||||
`DelayQueue` 实现了 `AbstractQueue` 类,继承了 `BlockingQueue` 接口。
|
||||
`DelayQueue` 继承了 `AbstractQueue` 类,实现了 `BlockingQueue` 接口。
|
||||
|
||||

|
||||
|
||||
@ -356,4 +356,4 @@ public E peek() {
|
||||
- 《深入理解高并发编程:JDK核心技术》:
|
||||
- 一口气说出Java 6种延时队列的实现方法(面试官也得服):<https://www.jb51.net/article/186192.htm>
|
||||
- 图解DelayQueue源码(java 8)——延时队列的小九九: <https://blog.csdn.net/every__day/article/details/113810985>
|
||||
<!-- @include: @article-footer.snippet.md -->
|
||||
<!-- @include: @article-footer.snippet.md -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user