Modifier and Type | Method and Description |
---|---|
void |
cancel() |
boolean |
isRepeating() |
boolean |
isRunning() |
void |
run()
private void create(@JsOptional Callable runnable) {
}
|
static void |
runAsync(Runnable runnable) |
static Timer |
runAsync(Runnable runnable,
int delayMillis) |
void |
schedule(int delayInMillis) |
static Timer |
schedule(Runnable runnable,
int delayInMillis) |
Timer |
scheduleRepeating(int periodInMillis) |
static Timer |
scheduleRepeating(Runnable runnable,
int delayInMillis) |
void |
setRepeating(boolean repeating) |
public Timer()
public Timer(@NotNull Runnable runnable)
public void run()
public boolean isRunning()
public boolean isRepeating()
public void setRepeating(boolean repeating)
public final void cancel()
public final void schedule(int delayInMillis)
public final Timer scheduleRepeating(int periodInMillis)
public static Timer scheduleRepeating(@NotNull Runnable runnable, int delayInMillis)
public static void runAsync(Runnable runnable)
Copyright © 2018 Xalys. All rights reserved.