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,
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
public static final long IMMEDIATE
- See Also:
- Constant Field Values
INDEFINITE
public static final long INDEFINITE
- See Also:
- Constant Field Values
isStopped
public boolean isStopped()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
isStopping
public boolean isStopping()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
isSuspended
public boolean isSuspended()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
isSuspending
public boolean isSuspending()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
resume
public void resume()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
schedule
public Timer schedule(TimerListener listener,
long delayInMillis)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException
schedule
public Timer schedule(TimerListener listener,
long delayInMillis,
long repeatIntervalInMillis)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException
schedule
public Timer schedule(TimerListener listener,
java.util.Date scheduleDate)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException
schedule
public 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
public Timer scheduleAtFixedRate(TimerListener listener,
long delayInMillis,
long repeatIntervalInMillis)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException
scheduleAtFixedRate
public 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
public void stop()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
suspend
public void suspend()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
waitForStop
public boolean waitForStop(long timeOut)
throws java.lang.InterruptedException,
java.lang.IllegalArgumentException
- Throws:
java.lang.InterruptedException
java.lang.IllegalArgumentException
waitForSuspend
public 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 © {inceptionYear}-2007 null. All Rights Reserved.