public class RangeCheckClock extends ForwardingClock
InternalClock.TimeReachedEvent, InternalClock.TimeReachedJob
Constructor and Description |
---|
RangeCheckClock(long _maxWaitMillis,
InternalClock _clock) |
Modifier and Type | Method and Description |
---|---|
void |
sleep(long _millis)
Wait for the specified amount of time in milliseconds.
|
close, createJob, disableJob, isJobSchedulable, millis, schedule
public RangeCheckClock(long _maxWaitMillis, InternalClock _clock)
public void sleep(long _millis) throws InterruptedException
InternalClock
When using a simulated clock either this method or InternalClock.millis()
needs to be
called to make time pass and make InternalClock.millis()
return an increased number.
sleep
in interface InternalClock
sleep
in class ForwardingClock
InterruptedException
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.