ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/Delayed.java
Revision: 1.3
Committed: Tue Jun 24 14:34:47 2003 UTC (20 years, 11 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_CR1, JSR166_PRELIMINARY_TEST_RELEASE_2
Changes since 1.2: +3 -1 lines
Log Message:
Added missing javadoc tags; minor reformatting

File Contents

# User Rev Content
1 dl 1.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 dl 1.3 * @since 1.5
15     * @author Doug Lea
16 dl 1.1 */
17     public interface Delayed extends Comparable {
18    
19     /**
20 jozart 1.2 * Get the delay associated with this object, in the given time unit.
21 dl 1.1 * @param unit the time unit
22     * @return the delay; zero or negative values indicate that the
23 jozart 1.2 * delay has already elapsed
24 dl 1.1 */
25 dl 1.3 long getDelay(TimeUnit unit);
26 dl 1.1 }