类 SystemClockAgent
java.lang.Object
org.coodex.util.clock.SystemClockAgent
- 所有已实现的接口:
ClockAgent
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明longvoid替代Object.wait(long)接口voidsleep(long millis) 替代Thread.sleep(long)接口void替代TimeUnit.sleep(long)接口long
-
构造器详细资料
-
SystemClockAgent
public SystemClockAgent()
-
-
方法详细资料
-
currentTimeMillis
public long currentTimeMillis()- 指定者:
currentTimeMillis在接口中ClockAgent- 返回:
- 替代
System.currentTimeMillis()接口
-
getCalendar
- 指定者:
getCalendar在接口中ClockAgent- 返回:
- 替代
Calendar.getInstance()接口
-
sleep
从接口复制的说明:ClockAgent替代Thread.sleep(long)接口- 指定者:
sleep在接口中ClockAgent- 参数:
millis- millis- 抛出:
InterruptedException
-
objWait
从接口复制的说明:ClockAgent替代Object.wait(long)接口- 指定者:
objWait在接口中ClockAgent- 参数:
obj- objmillis- millis- 抛出:
InterruptedException
-
sleep
从接口复制的说明:ClockAgent替代TimeUnit.sleep(long)接口- 指定者:
sleep在接口中ClockAgent- 参数:
unit- unittimeout- timeout- 抛出:
InterruptedException
-
toMillis
- 指定者:
toMillis在接口中ClockAgent- 参数:
duration- durationtimeUnit- timeUnit- 返回:
- 替代
TimeUnit.toMillis(long)接口
-