info.magnolia.cms.util
Class DelayedExecutor
java.lang.Object
info.magnolia.cms.util.DelayedExecutor
public class DelayedExecutor
- extends Object
There are many places where we like to delay an execution (in case of a serie of fired events). But we want to ensure
the the task is executed after a certain maximum delay.
- Version:
- $Id: DelayedExecutor.java 44893 2011-05-10 07:33:22Z dlipp $
- Author:
- philipp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timer
protected EDU.oswego.cs.dl.util.concurrent.ClockDaemon timer
delay
protected long delay
maxDelay
protected long maxDelay
timestamp
protected long timestamp
command
protected Runnable command
taskId
protected Object taskId
- The current taskId.
DelayedExecutor
public DelayedExecutor(Runnable command,
long delay,
long maxDelay)
- Parameters:
delay
- millisecondsmaxDelay
- milliseconds
trigger
public void trigger()
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.