public final class ExecutorUtils extends Object
| Constructor and Description |
|---|
ExecutorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
execute(Runnable runnable) |
static void |
executeWithLowPriority(Runnable runnable) |
static void |
schedule(Runnable runnable,
Long delaySeconds) |
static ScheduledFuture<?> |
schedule(Runnable runnable,
Long delaySeconds,
Long period) |
static void |
scheduleInMillis(Runnable runnable,
Long delayMilliSeconds) |
static void |
sleep(int seconds) |
static void |
sleepInMillis(long millis) |
public static void executeWithLowPriority(Runnable runnable)
public static ScheduledFuture<?> schedule(Runnable runnable, Long delaySeconds, Long period)
public static void sleep(int seconds)
seconds - The time to sleep in seconds.public static void sleepInMillis(long millis)
millis - The time to sleep in milliseconds.Copyright © 2014. All rights reserved.