程序包 com.sh.util
类 DelayUtil
java.lang.Object
com.sh.util.DelayUtil
Description: 延迟
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Dec 26, 2012
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voiddelay(int millis) static voiddelay(int millis, DelayUtil.DelayNotify notify) static voiddelay(int millis, DelayUtil.DelayNotify notify, Predicate<? super DelayUtil.DelayNotify> predicate) static void延迟时间static voiddelay(int time, TimeUnit unit, DelayUtil.DelayNotify notify) 延迟时间static voiddelay(int time, TimeUnit unit, DelayUtil.DelayNotify notify, Predicate<? super DelayUtil.DelayNotify> predicate) static voiddelay(int time, TimeUnit unit, Predicate<? super DelayUtil.DelayNotify> predicate) static voiddelay(int millis, Predicate<? super DelayUtil.DelayNotify> predicate) static voiddelay(long millis) 延迟时间static voiddelayAndInterrupted(int millis) static voiddelayAndInterrupted(int millis, DelayUtil.DelayNotify notify) static voiddelayAndInterrupted(int time, TimeUnit unit) static voiddelayAndInterrupted(int time, TimeUnit unit, DelayUtil.DelayNotify notify) static voiddelayAndInterrupted(int time, TimeUnit unit, DelayUtil.DelayNotify notify, Predicate<? super DelayUtil.DelayNotify> predicate) 延迟static voiddelayAndInterrupted(int time, TimeUnit unit, Predicate<? super DelayUtil.DelayNotify> predicate) static boolean等待每一分钟,在毫秒为0的时候返回,这是一个阻塞的方法static boolean等待每一秒,在毫秒为0的时候返回,这是一个阻塞的方法static booleanwaitEveryTime(long everyTime) 等待每一指定的时间,在毫秒为0的时候返回,这是一个阻塞的方法
-
字段详细资料
-
构造器详细资料
-
DelayUtil
public DelayUtil()
-
-
方法详细资料
-
delay
public static void delay(int millis) -
delay
延迟时间- 参数:
millis- 毫秒
-
delay
-
delay
public static void delay(int millis, DelayUtil.DelayNotify notify, Predicate<? super DelayUtil.DelayNotify> predicate) -
delay
-
delay
延迟时间- 参数:
time- 毫秒notify- 程序回调函数
-
delay
public static void delay(int time, TimeUnit unit, Predicate<? super DelayUtil.DelayNotify> predicate) -
delay
public static void delay(int time, TimeUnit unit, DelayUtil.DelayNotify notify, Predicate<? super DelayUtil.DelayNotify> predicate) -
delayAndInterrupted
-
delayAndInterrupted
-
delayAndInterrupted
-
delayAndInterrupted
public static void delayAndInterrupted(int time, TimeUnit unit, DelayUtil.DelayNotify notify) throws InterruptedException -
delayAndInterrupted
public static void delayAndInterrupted(int time, TimeUnit unit, Predicate<? super DelayUtil.DelayNotify> predicate) throws InterruptedException -
delayAndInterrupted
public static void delayAndInterrupted(int time, TimeUnit unit, DelayUtil.DelayNotify notify, Predicate<? super DelayUtil.DelayNotify> predicate) throws InterruptedException 延迟- 参数:
time-unit-notify-predicate- true 中断等待,false 继续等待- 抛出:
InterruptedException
-
delay
public static void delay(long millis) 延迟时间- 参数:
millis- 毫秒
-
waitEverySeconds
public static boolean waitEverySeconds()等待每一秒,在毫秒为0的时候返回,这是一个阻塞的方法- 返回:
- boolean
-
waitEveryMinute
public static boolean waitEveryMinute()等待每一分钟,在毫秒为0的时候返回,这是一个阻塞的方法- 返回:
- boolean
-
waitEveryTime
public static boolean waitEveryTime(long everyTime) 等待每一指定的时间,在毫秒为0的时候返回,这是一个阻塞的方法- 参数:
everyTime- long- 返回:
- boolean
-