commonj.timers
Interface TimerManager
public interface TimerManager
- Version:
- $Rev: 46019 $ $Date: 2004-09-14 05:56:06 -0400 (Tue, 14 Sep 2004) $
Method Summary |
boolean |
isStopped()
|
boolean |
isStopping()
|
boolean |
isSuspended()
|
boolean |
isSuspending()
|
void |
resume()
|
Timer |
schedule(TimerListener listener,
Date scheduleDate)
|
Timer |
schedule(TimerListener listener,
Date scheduleDate,
long repeatIntervalInMillis)
|
Timer |
schedule(TimerListener listener,
long delayInMillis)
|
Timer |
schedule(TimerListener listener,
long delayInMillis,
long repeatIntervalInMillis)
|
Timer |
scheduleAtFixedRate(TimerListener listener,
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 IllegalStateException
- Throws:
IllegalStateException
isSuspending
boolean isSuspending()
throws IllegalStateException
- Throws:
IllegalStateException
resume
void resume()
throws IllegalStateException
- Throws:
IllegalStateException
schedule
Timer schedule(TimerListener listener,
long delayInMillis)
throws IllegalStateException,
IllegalArgumentException
- Throws:
IllegalStateException
IllegalArgumentException
schedule
Timer schedule(TimerListener listener,
long delayInMillis,
long repeatIntervalInMillis)
throws IllegalStateException,
IllegalArgumentException
- Throws:
IllegalStateException
IllegalArgumentException
schedule
Timer schedule(TimerListener listener,
Date scheduleDate)
throws IllegalStateException,
IllegalArgumentException
- Throws:
IllegalStateException
IllegalArgumentException
schedule
Timer schedule(TimerListener listener,
Date scheduleDate,
long repeatIntervalInMillis)
throws IllegalStateException,
IllegalArgumentException
- Throws:
IllegalStateException
IllegalArgumentException
scheduleAtFixedRate
Timer scheduleAtFixedRate(TimerListener listener,
long delayInMillis,
long repeatIntervalInMillis)
throws IllegalStateException,
IllegalArgumentException
- Throws:
IllegalStateException
IllegalArgumentException
scheduleAtFixedRate
Timer scheduleAtFixedRate(TimerListener listener,
Date scheduleDate,
long repeatIntervalInMillis)
throws IllegalStateException,
IllegalArgumentException
- Throws:
IllegalStateException
IllegalArgumentException
stop
void stop()
throws IllegalStateException
- Throws:
IllegalStateException
suspend
void suspend()
throws IllegalStateException
- Throws:
IllegalStateException
waitForStop
boolean waitForStop(long timeOut)
throws InterruptedException,
IllegalArgumentException
- Throws:
InterruptedException
IllegalArgumentException
waitForSuspend
boolean waitForSuspend(long timOut)
throws InterruptedException,
IllegalStateException,
IllegalArgumentException
- Throws:
InterruptedException
IllegalStateException
IllegalArgumentException
Copyright © 2006 Apache Software Foundation. All Rights Reserved.