Clock.ClockUpdateListenerpublic class JobTiming extends Object implements Clock.ClockUpdateListener
| Constructor | Description |
|---|---|
JobTiming(RouterContext context) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
end() |
Notify the timing that the job finished
|
long |
getActualEnd() |
# of milliseconds after the epoch the job actually ended
|
long |
getActualStart() |
# of milliseconds after the epoch the job actually started
|
long |
getStartAfter() |
# of milliseconds after the epoch to start the job
|
void |
offsetChanged(long delta) |
|
void |
setActualEnd(long actualEndTime) |
|
void |
setActualStart(long actualStartTime) |
|
void |
setStartAfter(long startTime) |
WARNING - this does not force a resort of the job queue any more...
|
void |
start() |
Notify the timing that the job began
|
public JobTiming(RouterContext context)
public long getStartAfter()
public void setStartAfter(long startTime)
public long getActualStart()
public void setActualStart(long actualStartTime)
public void start()
public long getActualEnd()
public void setActualEnd(long actualEndTime)
public void end()
public void offsetChanged(long delta)
offsetChanged in interface Clock.ClockUpdateListenerdelta - = (new offset - old offset),
where each offset = (now() - System.currentTimeMillis())