类 AbstractClockAgent
java.lang.Object
org.coodex.util.clock.AbstractClockAgent
- 所有已实现的接口:
ClockAgent
- 直接已知子类:
DefaultClockAgent,RemoteClockAgent
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明longlonglonggetStart()void替代Object.wait(long)接口voidsleep(long millis) 替代Thread.sleep(long)接口void替代TimeUnit.sleep(long)接口long
-
构造器详细资料
-
AbstractClockAgent
-
-
方法详细资料
-
getMagnification
-
getBaseLine
public long getBaseLine() -
getStart
public long getStart() -
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
-
toMillis
- 指定者:
toMillis在接口中ClockAgent- 参数:
duration- durationtimeUnit- timeUnit- 返回:
- 替代
TimeUnit.toMillis(long)接口
-
sleep
从接口复制的说明:ClockAgent替代TimeUnit.sleep(long)接口- 指定者:
sleep在接口中ClockAgent- 参数:
unit- unittimeout- timeout- 抛出:
InterruptedException
-