Class Overview
This class provides a very stripped-down clone of some of the functionality in
java.util.Timer (notably Timer.schedule(TimerTask task, long delay) but
uses System.nanoTime() rather than System.currentTimeMillis() as a measure
of the underlying time, and thus behaves correctly if the system clock jumps
around.
This class does not have any relation to TimerTask due to the coupling
between TimerTask and Timer - for example if someone invokes
TimerTask.cancel(), we can't find out about it as TimerTask.state is
package-private.
We currently just use this to time the quiescing RPC in AMQChannel.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
SingleShotLinearTimer
()
Public Methods
public
synchronized
void
schedule
(Runnable task, int timeoutMillisec)