|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.core.executor.TaskExecutors
public class TaskExecutors
Constructor Summary | |
---|---|
TaskExecutors()
|
Method Summary | ||
---|---|---|
static TaskExecutorService |
newExecutorService(GigaSpace gigaSpace)
Construts a new DefaultTaskExecutorService which is an executor
service that can execute tasks on top of the Space. |
|
static
|
privilegedTask(DistributedTask<T,R> task)
Constructs a new privileged task wrapping the actual task to execute. |
|
static
|
privilegedTask(DistributedTask<T,R> task,
AsyncResultFilter<T> filter)
Constructs a new privileged task wrapping the actual task and filter to execute. |
|
static
|
privilegedTask(Task<T> task)
Constructs a new privileged task wrapping the actual task to execute. |
|
static
|
task(Callable<T> callable)
Constructs a new callable task adapter with the callable to call . |
|
static
|
task(Callable<T> callable,
AsyncResultsReducer<T,R> reducer)
Constructs a new callable distributed task adapter with a separate reducer. |
|
static
|
task(Callable<T> callable,
AsyncResultsReducer<T,R> reducer,
AsyncResultFilter<T> filter)
Constructs a new callable distributed task adapter with a separate reducer and filter. |
|
static
|
task(Runnable runnable)
Constructs a new runnable task adapter with the runnable to run . |
|
static
|
task(Runnable runnable,
AsyncResultsReducer<T,R> reducer)
Constructs a new runnable distributed task adapter with a separate reducer. |
|
static
|
task(Runnable runnable,
AsyncResultsReducer<T,R> reducer,
AsyncResultFilter<T> filter)
Constructs a new runnable distributed task adapter with a separate reducer and filter. |
|
static
|
task(Runnable runnable,
T result)
Constructs a new runnable task adapter with the runnable to run . |
|
static
|
task(Runnable runnable,
T result,
AsyncResultsReducer<T,R> reducer)
Constructs a new runnable distributed task adapter with a separate reducer. |
|
static
|
task(Runnable runnable,
T result,
AsyncResultsReducer<T,R> reducer,
AsyncResultFilter<T> filter)
Constructs a new runnable distributed task adapter with a separate reducer and filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskExecutors()
Method Detail |
---|
public static TaskExecutorService newExecutorService(GigaSpace gigaSpace)
DefaultTaskExecutorService
which is an executor
service that can execute tasks on top of the Space.
public static <T extends Serializable> Task<T> task(Callable<T> callable)
call
.
public static <T extends Serializable,R> DistributedTask<T,R> task(Callable<T> callable, AsyncResultsReducer<T,R> reducer)
AsyncResultFilter
.
public static <T extends Serializable,R> DistributedTask<T,R> task(Callable<T> callable, AsyncResultsReducer<T,R> reducer, AsyncResultFilter<T> filter)
public static <T extends Serializable> Task<T> task(Runnable runnable)
run
.
public static <T extends Serializable,R> DistributedTask<T,R> task(Runnable runnable, AsyncResultsReducer<T,R> reducer)
AsyncResultFilter
.
public static <T extends Serializable,R> DistributedTask<T,R> task(Runnable runnable, AsyncResultsReducer<T,R> reducer, AsyncResultFilter<T> filter)
public static <T extends Serializable,R> DistributedTask<T,R> task(Runnable runnable, T result, AsyncResultsReducer<T,R> reducer)
AsyncResultFilter
.
public static <T extends Serializable,R> DistributedTask<T,R> task(Runnable runnable, T result, AsyncResultsReducer<T,R> reducer, AsyncResultFilter<T> filter)
public static <T extends Serializable> Task<T> task(Runnable runnable, T result)
run
. Will return
the result after the call to run
.
public static <T extends Serializable> Task<T> privilegedTask(Task<T> task)
public static <T extends Serializable,R> DistributedTask<T,R> privilegedTask(DistributedTask<T,R> task)
public static <T extends Serializable,R> DistributedTask<T,R> privilegedTask(DistributedTask<T,R> task, AsyncResultFilter<T> filter)
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |