-  
       
- All Superinterfaces:
 -  
         
Comparable<Delayed> 
- All Known Subinterfaces:
 -  
         
RunnableScheduledFuture<V>,ScheduledFuture<V> 
public interface Delayed extends Comparable<Delayed>
混合样式界面,用于标记在给定延迟后应该对其执行操作的对象。此接口的实现必须定义
compareTo方法,该方法提供与其getDelay方法一致的排序。- 从以下版本开始:
 - 1.5
 
 
-  
        
       
-  
             
方法详细信息
-  
getDelay
long getDelay(TimeUnit unit)
以给定的时间单位返回与此对象关联的剩余延迟。- 参数
 -  
              
unit- 时间单位 - 结果
 - 剩下的延误; 零或负值表示延迟已经过去
 
 
 -  
 
 -