commonj.timers
Interface TimerManager
public interface TimerManager
- Version:
- $Rev: 430914 $ $Date: 2006-08-11 16:17:16 -0700 (Fri, 11 Aug 2006) $
Method Summary |
boolean |
isStopped()
|
boolean |
isStopping()
|
boolean |
isSuspended()
|
boolean |
isSuspending()
|
void |
resume()
|
Timer |
schedule(TimerListener listener,
java.util.Date scheduleDate)
|
Timer |
schedule(TimerListener listener,
java.util.Date scheduleDate,
long repeatIntervalInMillis)
|
Timer |
schedule(TimerListener listener,
long delayInMillis)
|
Timer |
schedule(TimerListener listener,
long delayInMillis,
long repeatIntervalInMillis)
|
Timer |
scheduleAtFixedRate(TimerListener listener,
java.util.Date scheduleDate,
long repeatIntervalInMillis)
|
Timer |
scheduleAtFixedRate(TimerListener listener,
long delayInMillis,
long repeatIntervalInMillis)
|
void |
stop()
|
void |
suspend()
|
boolean |
waitForStop(long timeOut)
|
boolean |
waitForSuspend(long timOut)
|
IMMEDIATE
static final long IMMEDIATE
- See Also:
- Constant Field Values
INDEFINITE
static final long INDEFINITE
- See Also:
- Constant Field Values
isStopped
boolean isStopped()
isStopping
boolean isStopping()
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.IllegalStateException
java.lang.IllegalArgumentException
schedule
Timer schedule(TimerListener listener,
long delayInMillis,
long repeatIntervalInMillis)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException
schedule
Timer schedule(TimerListener listener,
java.util.Date scheduleDate)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException
schedule
Timer schedule(TimerListener listener,
java.util.Date scheduleDate,
long repeatIntervalInMillis)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException
scheduleAtFixedRate
Timer scheduleAtFixedRate(TimerListener listener,
long delayInMillis,
long repeatIntervalInMillis)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException
scheduleAtFixedRate
Timer scheduleAtFixedRate(TimerListener listener,
java.util.Date scheduleDate,
long repeatIntervalInMillis)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.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.InterruptedException
java.lang.IllegalArgumentException
waitForSuspend
boolean waitForSuspend(long timOut)
throws java.lang.InterruptedException,
java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.lang.InterruptedException
java.lang.IllegalStateException
java.lang.IllegalArgumentException
Copyright © 2006 Apache Software Foundation. All Rights Reserved.