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
IllegalStateException
boolean isSuspending() throws IllegalStateException
IllegalStateException
void resume() throws IllegalStateException
IllegalStateException
Timer 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
IllegalStateException
void suspend() throws IllegalStateException
IllegalStateException
boolean waitForStop(long timeOut) throws InterruptedException, IllegalArgumentException
boolean waitForSuspend(long timOut) throws InterruptedException, IllegalStateException, IllegalArgumentException
Copyright © 2018. All rights reserved.