Package commonj.timers
Interface TimerManager
-
public interface TimerManager
-
-
Field Summary
Fields Modifier and Type Field Description static longIMMEDIATEstatic longINDEFINITE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisStopped()booleanisStopping()booleanisSuspended()booleanisSuspending()voidresume()Timerschedule(TimerListener listener, long delayInMillis)Timerschedule(TimerListener listener, long delayInMillis, long repeatIntervalInMillis)Timerschedule(TimerListener listener, java.util.Date scheduleDate)Timerschedule(TimerListener listener, java.util.Date scheduleDate, long repeatIntervalInMillis)TimerscheduleAtFixedRate(TimerListener listener, long delayInMillis, long repeatIntervalInMillis)TimerscheduleAtFixedRate(TimerListener listener, java.util.Date scheduleDate, long repeatIntervalInMillis)voidstop()voidsuspend()booleanwaitForStop(long timeOut)booleanwaitForSuspend(long timOut)
-
-
-
Field Detail
-
IMMEDIATE
static final long IMMEDIATE
- See Also:
- Constant Field Values
-
INDEFINITE
static final long INDEFINITE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isStopped
boolean isStopped() throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
isStopping
boolean isStopping() throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
isSuspended
boolean isSuspended() throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
isSuspending
boolean isSuspending() throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
resume
void resume() throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
schedule
Timer schedule(TimerListener listener, long delayInMillis) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateExceptionjava.lang.IllegalArgumentException
-
schedule
Timer schedule(TimerListener listener, long delayInMillis, long repeatIntervalInMillis) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateExceptionjava.lang.IllegalArgumentException
-
schedule
Timer schedule(TimerListener listener, java.util.Date scheduleDate) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateExceptionjava.lang.IllegalArgumentException
-
schedule
Timer schedule(TimerListener listener, java.util.Date scheduleDate, long repeatIntervalInMillis) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateExceptionjava.lang.IllegalArgumentException
-
scheduleAtFixedRate
Timer scheduleAtFixedRate(TimerListener listener, long delayInMillis, long repeatIntervalInMillis) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateExceptionjava.lang.IllegalArgumentException
-
scheduleAtFixedRate
Timer scheduleAtFixedRate(TimerListener listener, java.util.Date scheduleDate, long repeatIntervalInMillis) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateExceptionjava.lang.IllegalArgumentException
-
stop
void stop() throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
suspend
void suspend() throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
waitForStop
boolean waitForStop(long timeOut) throws java.lang.InterruptedException, java.lang.IllegalArgumentException- Throws:
java.lang.InterruptedExceptionjava.lang.IllegalArgumentException
-
waitForSuspend
boolean waitForSuspend(long timOut) throws java.lang.InterruptedException, java.lang.IllegalStateException, java.lang.IllegalArgumentException- Throws:
java.lang.InterruptedExceptionjava.lang.IllegalStateExceptionjava.lang.IllegalArgumentException
-
-