org.openjena.atlas.lib
Class AlarmClock
java.lang.Object
org.openjena.atlas.lib.AlarmClock
public class AlarmClock
- extends java.lang.Object
An AlarmClock is an object that will make a call back at a preset time.
It addes to java.util.Timer by having an active Timer (and its thread)
only when callbacks are outstanding. The Timer's thread can stop the JVM exiting.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timer
public java.util.Timer timer
outstanding
public java.util.Set<Pingback<?>> outstanding
timeStart
public long timeStart
AlarmClock
public AlarmClock()
get
public static AlarmClock get()
- Global singleton for general use
getCount
public long getCount()
add
public Pingback<?> add(Callback<?> callback,
long delay)
add
public <T> Pingback<T> add(Callback<T> callback,
T argument,
long delay)
reset
public <T> Pingback<T> reset(Pingback<T> pingback,
long delay)
cancel
public void cancel(Pingback<?> pingback)
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.