public interface TimerManager
| Modifier and Type | Field and Description |
|---|---|
static long |
IMMEDIATE |
static long |
INDEFINITE |
| Modifier and Type | Method and Description |
|---|---|
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) |
static final long IMMEDIATE
static final long INDEFINITE
boolean isStopped()
boolean isStopping()
boolean isSuspended()
throws IllegalStateException
IllegalStateExceptionboolean isSuspending()
throws IllegalStateException
IllegalStateExceptionvoid resume()
throws IllegalStateException
IllegalStateExceptionTimer schedule(TimerListener listener, long delayInMillis) throws IllegalStateException, IllegalArgumentException
Timer schedule(TimerListener listener, long delayInMillis, long repeatIntervalInMillis) throws IllegalStateException, IllegalArgumentException
Timer schedule(TimerListener listener, Date scheduleDate) throws IllegalStateException, IllegalArgumentException
Timer schedule(TimerListener listener, Date scheduleDate, long repeatIntervalInMillis) throws IllegalStateException, IllegalArgumentException
Timer scheduleAtFixedRate(TimerListener listener, long delayInMillis, long repeatIntervalInMillis) throws IllegalStateException, IllegalArgumentException
Timer scheduleAtFixedRate(TimerListener listener, Date scheduleDate, long repeatIntervalInMillis) throws IllegalStateException, IllegalArgumentException
void stop() throws IllegalStateException
IllegalStateExceptionvoid suspend()
throws IllegalStateException
IllegalStateExceptionboolean waitForStop(long timeOut)
throws InterruptedException,
IllegalArgumentException
boolean waitForSuspend(long timOut)
throws InterruptedException,
IllegalStateException,
IllegalArgumentException
Copyright © 2015. All rights reserved.