Skip to content

Commit 4e5f88d

Browse files
authored
Update delayqueue-source-code.md
1 parent ae8ae6c commit 4e5f88d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: docs/java/collection/delayqueue-source-code.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Task 3
115115

116116
## DelayQueue 源码解析
117117

118-
这里以 JDK1.8 为例,分析一下 `LinkedList` 的底层核心源码。
118+
这里以 JDK1.8 为例,分析一下 `DelayQueue` 的底层核心源码。
119119

120120
`DelayQueue` 的类定义如下:
121121

@@ -126,7 +126,7 @@ public class DelayQueue<E extends Delayed> extends AbstractQueue<E> implements B
126126
}
127127
```
128128

129-
`DelayQueue` 实现了 `AbstractQueue` 类,继承了 `BlockingQueue` 接口。
129+
`DelayQueue` 继承了 `AbstractQueue` 类,实现了 `BlockingQueue` 接口。
130130

131131
![DelayQueue类图](https://oss.javaguide.cn/github/javaguide/java/collection/delayqueue-class-diagram.png)
132132

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

0 commit comments

Comments
 (0)