public class Jobs extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
call(Callback<T> callback,
T result,
Throwable error) |
static <T> void |
callIfNotNull(Callback<T> callback,
T result,
Throwable error) |
static <T> void |
execute(Callable<T> job,
Callback<T> callback) |
static void |
execute(Runnable job) |
static Executor |
executor() |
static <T> ScheduledFuture<?> |
schedule(Callable<T> job,
long delay,
TimeUnit unit,
Callback<T> callback) |
static ScheduledFuture<?> |
schedule(Runnable job,
long delay,
TimeUnit unit) |
static <T> ScheduledFuture<?> |
scheduleAtFixedRate(Callable<T> job,
long initialDelay,
long period,
TimeUnit unit,
Callback<T> callback) |
static ScheduledFuture<?> |
scheduleAtFixedRate(Runnable job,
long initialDelay,
long period,
TimeUnit unit) |
static ScheduledExecutorService |
scheduler() |
static <T> ScheduledFuture<?> |
scheduleWithFixedDelay(Callable<T> job,
long initialDelay,
long delay,
TimeUnit unit,
Callback<T> callback) |
static ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable job,
long initialDelay,
long delay,
TimeUnit unit) |
static Runnable |
wrap(Runnable job) |
public static ScheduledExecutorService scheduler()
public static Executor executor()
public static ScheduledFuture<?> schedule(Runnable job, long delay, TimeUnit unit)
public static <T> ScheduledFuture<?> schedule(Callable<T> job, long delay, TimeUnit unit, Callback<T> callback)
public static ScheduledFuture<?> scheduleAtFixedRate(Runnable job, long initialDelay, long period, TimeUnit unit)
public static <T> ScheduledFuture<?> scheduleAtFixedRate(Callable<T> job, long initialDelay, long period, TimeUnit unit, Callback<T> callback)
public static ScheduledFuture<?> scheduleWithFixedDelay(Runnable job, long initialDelay, long delay, TimeUnit unit)
public static <T> ScheduledFuture<?> scheduleWithFixedDelay(Callable<T> job, long initialDelay, long delay, TimeUnit unit, Callback<T> callback)
public static void execute(Runnable job)
Copyright © 2014–2015 Nikolche Mihajlovski and contributors. All rights reserved.