public class ProcessContext extends Object
A request context is an object giving more information about the context in which a process is executed. For instance, operations could be run in a scheduled job, when the application starts or when an HTTP request is sent to a web container.
This class should be specialized in order to give details that are specific to a particular context.
| Modifier and Type | Field and Description |
|---|---|
static ProcessContext |
DEFAULT
Default install that could be installed anywhere.
|
| Constructor and Description |
|---|
ProcessContext() |
| Modifier and Type | Method and Description |
|---|---|
<T> Future<T> |
executeAsap(Callable<T> job)
Executes as soon as possible the given job and returns the related
Future. |
public static final ProcessContext DEFAULT
public <T> Future<T> executeAsap(Callable<T> job)
Executes as soon as possible the given job and returns the related Future.
This method delegates the job to WuicScheduledThreadPool singleton.
job - the job to executeCopyright © 2012-2015. All Rights Reserved.