You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Copy from dubbo, see <a href="https://github.com/apache/dubbo/blob/3.2/dubbo-common/src/main/java/org/apache/dubbo/common/timer/HashedWheelTimer.java">here</a> for more details.
64
64
*/
65
65
@Slf4j
@@ -394,7 +394,7 @@ public Timeout newTimeout(TimerTask task, long delay, TimeUnit unit) {
394
394
}
395
395
396
396
/**
397
-
* Returns the number of pending timeouts of this {@link Timer}.
397
+
* @return the number of pending timeouts of this {@link Timer}.
Copy file name to clipboardexpand all lines: common/src/main/java/com/dtp/common/timer/Timeout.java
+9-1
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,38 @@
1
1
packagecom.dtp.common.timer;
2
2
3
3
/**
4
-
* A handle associated with a {@link TimerTask} that is returned by a{@link Timer}.<br/>
4
+
* A handle associated with a {@link TimerTask} that is returned by a{@link Timer}.<br>
5
5
* Copy from dubbo, see <a href="https://github.com/apache/dubbo/blob/3.2/dubbo-common/src/main/java/org/apache/dubbo/common/timer/Timeout.java">here</a> for more details.
6
6
*/
7
7
publicinterfaceTimeout {
8
8
9
9
/**
10
10
* Returns the {@link Timer} that created this handle.
11
+
*
12
+
* @return the {@link Timer} that created this handle
11
13
*/
12
14
Timertimer();
13
15
14
16
/**
15
17
* Returns the {@link TimerTask} which is associated with this handle.
18
+
*
19
+
* @return the {@link TimerTask} which is associated with this handle
16
20
*/
17
21
TimerTasktask();
18
22
19
23
/**
20
24
* Returns {@code true} if and only if the {@link TimerTask} associated
21
25
* with this handle has been expired.
26
+
*
27
+
* @return {@code true} if and only if the {@link TimerTask} associated
22
28
*/
23
29
booleanisExpired();
24
30
25
31
/**
26
32
* Returns {@code true} if and only if the {@link TimerTask} associated
27
33
* with this handle has been cancelled.
34
+
*
35
+
* @return {@code true} if and only if the {@link TimerTask} associated
* Copy from dubbo, see <a href="https://github.com/apache/dubbo/blob/3.2/dubbo-common/src/main/java/org/apache/dubbo/common/timer/TimeTask.java">here</a> for more details.
0 commit comments