public class Jobs extends Object
Modifier and Type | Method and Description |
---|---|
static <T> void |
call(org.rapidoid.concurrent.Callback<T> callback,
T result,
Throwable error) |
static <T> void |
callIfNotNull(org.rapidoid.concurrent.Callback<T> callback,
T result,
Throwable error) |
static <T> void |
execute(Callable<T> job,
org.rapidoid.concurrent.Callback<T> callback) |
static void |
execute(Runnable job) |
static Executor |
executor() |
static <T> ScheduledFuture<?> |
schedule(Callable<T> job,
long delay,
TimeUnit unit,
org.rapidoid.concurrent.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,
org.rapidoid.concurrent.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,
org.rapidoid.concurrent.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, org.rapidoid.concurrent.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, org.rapidoid.concurrent.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, org.rapidoid.concurrent.Callback<T> callback)
public static void execute(Runnable job)
public static <T> void execute(Callable<T> job, org.rapidoid.concurrent.Callback<T> callback)
public static <T> void callIfNotNull(org.rapidoid.concurrent.Callback<T> callback, T result, Throwable error)
public static <T> void call(org.rapidoid.concurrent.Callback<T> callback, T result, Throwable error)
Copyright © 2014–2015 Nikolche Mihajlovski and contributors. All rights reserved.