public class DelayedExecutor extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
DelayedExecutor.RunnableWrapper
Resets the timestamp after starting the execution.
|
Modifier and Type | Field and Description |
---|---|
protected Runnable |
command |
protected long |
delay |
protected long |
maxDelay |
protected Object |
taskId
The current taskId.
|
protected EDU.oswego.cs.dl.util.concurrent.ClockDaemon |
timer |
protected long |
timestamp |
Constructor and Description |
---|
DelayedExecutor(Runnable command,
long delay,
long maxDelay) |
protected EDU.oswego.cs.dl.util.concurrent.ClockDaemon timer
protected long delay
protected long maxDelay
protected long timestamp
protected Runnable command
protected Object taskId
public DelayedExecutor(Runnable command, long delay, long maxDelay)
delay
- millisecondsmaxDelay
- millisecondsCopyright © 2003–2019 Magnolia International Ltd.. All rights reserved.