@Authors(value="Nikolche Mihajlovski") @Since(value="4.1.0") public class Jobs extends RapidoidThing
| Modifier and Type | Method and Description |
|---|---|
static JobsDSL |
after(long delay,
TimeUnit unit) |
static <T> void |
call(Callback<T> callback,
T result,
Throwable error) |
static AtomicLong |
errorCounter() |
static JobsDSL |
every(long period,
TimeUnit unit) |
static <T> void |
execute(Callable<T> job,
Callback<T> callback) |
static void |
execute(Runnable job) |
static void |
executeAndWait(Runnable job) |
static void |
executeInContext(WithContext context,
Runnable action) |
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 ContextPreservingJobWrapper |
wrap(Runnable job) |
public static final Config JOBS
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)
public static void executeAndWait(Runnable job)
public static ContextPreservingJobWrapper wrap(Runnable job)
public static void executeInContext(WithContext context, Runnable action)
public static AtomicLong errorCounter()
Copyright © 2014–2016 Nikolche Mihajlovski and contributors. All rights reserved.