Package | Description |
---|---|
com.pushtechnology.diffusion.api.threads |
Diffusion Threads and Concurrency API.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ScheduledTask
A
RunnableTask that defines a schedule by which it should be run. |
Modifier and Type | Method and Description |
---|---|
void |
ThreadPool.execute(RunnableTask runnable)
Give a
RunnableTask to the pool to be executed. |
void |
ThreadService.CallerRunsRejectionPolicy.rejectedExecution(RunnableTask runnable,
ThreadPool threadPool) |
void |
ThreadService.AbortRejectionPolicy.rejectedExecution(RunnableTask runnable,
ThreadPool threadPool) |
void |
ThreadPoolRejectionHandler.rejectedExecution(RunnableTask runnable,
ThreadPool threadPool)
Called when a task can not be executed by a
ThreadPool . |
static ScheduledFuture<?> |
ThreadService.schedule(RunnableTask runnable,
long initialDelay,
long period,
TimeUnit unit,
boolean isConstantRate)
Schedules a task for periodic execution.
|
static ScheduledFuture<?> |
ThreadService.schedule(RunnableTask runnable,
long delay,
TimeUnit unit)
Schedule a task for execution after a given period of time.
|
static Schedule |
ThreadService.schedule(String name,
String frequency,
RunnableTask task)
Schedules a task to be run according to a schedule specified by a 'cron'
like frequency pattern.
|
Copyright © 2016 Push Technology Ltd. All Rights Reserved.