1
0
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:
cxhello 2023-09-01 11:31:03 +08:00 committed by GitHub
parent ae8ae6cd32
commit 4e5f88d89d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ Task 3
## DelayQueue 源码解析 ## DelayQueue 源码解析
这里以 JDK1.8 为例,分析一下 `LinkedList` 的底层核心源码。 这里以 JDK1.8 为例,分析一下 `DelayQueue` 的底层核心源码。
`DelayQueue` 的类定义如下: `DelayQueue` 的类定义如下:
@ -126,7 +126,7 @@ public class DelayQueue<E extends Delayed> extends AbstractQueue<E> implements B
} }
``` ```
`DelayQueue` 实现了 `AbstractQueue` 类,继承`BlockingQueue` 接口。 `DelayQueue` 继承了 `AbstractQueue` 类,实现`BlockingQueue` 接口。
![DelayQueue类图](https://oss.javaguide.cn/github/javaguide/java/collection/delayqueue-class-diagram.png) ![DelayQueue类图](https://oss.javaguide.cn/github/javaguide/java/collection/delayqueue-class-diagram.png)