ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/Delayed.java
Revision: 1.1
Committed: Sun Jun 1 18:38:01 2003 UTC (21 years ago) by dl
Branch: MAIN
CVS Tags: JSR166_PRELIMINARY_TEST_RELEASE_1
Log Message:
Replaced DelayEntry with Delayed interface

File Contents

# Content
1 /*
2 * Written by Doug Lea with assistance from members of JCP JSR-166
3 * Expert Group and released to the public domain. Use, modify, and
4 * redistribute this code in any way without acknowledgement.
5 */
6
7 package java.util.concurrent;
8 import java.util.*;
9
10 /**
11 * A mix-in style interface for representing actions, events, etc
12 * that should be executed, accessed or acted upon only after
13 * a given delay.
14 */
15 public interface Delayed extends Comparable {
16
17 /**
18 * Get the delay aoociated with this object, in the given time unit.
19 * @param unit the time unit
20 * @return the delay; zero or negative values indicate that the
21 * delay has already elapsed.
22 */
23 public long getDelay(TimeUnit unit);
24 }