public class TaskExecutors extends Object
Constructor and Description |
---|
TaskExecutors() |
Modifier and Type | Method and Description |
---|---|
static TaskExecutorService |
newExecutorService(GigaSpace gigaSpace)
Constructs a new
DefaultTaskExecutorService which is
an executor service that can execute tasks on top of the Space. |
static <T extends Serializable,R> |
privilegedTask(DistributedTask<T,R> task)
Constructs a new privileged task wrapping the actual task to execute.
|
static <T extends Serializable,R> |
privilegedTask(DistributedTask<T,R> task,
AsyncResultFilter<T> filter)
Constructs a new privileged task wrapping the actual task and filter to execute.
|
static <T extends Serializable> |
privilegedTask(Task<T> task)
Constructs a new privileged task wrapping the actual task to execute.
|
static <T extends Serializable> |
task(Callable<T> callable)
Constructs a new callable task adapter with the callable to
call . |
static <T extends Serializable,R> |
task(Callable<T> callable,
AsyncResultsReducer<T,R> reducer)
Constructs a new callable distributed task adapter with a separate reducer.
|
static <T extends Serializable,R> |
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 <T extends Serializable> |
task(Runnable runnable)
Constructs a new runnable task adapter with the runnable to
run . |
static <T extends Serializable,R> |
task(Runnable runnable,
AsyncResultsReducer<T,R> reducer)
Constructs a new runnable distributed task adapter with a separate reducer.
|
static <T extends Serializable,R> |
task(Runnable runnable,
AsyncResultsReducer<T,R> reducer,
AsyncResultFilter<T> filter)
Constructs a new runnable distributed task adapter with a separate reducer and filter.
|
static <T extends Serializable> |
task(Runnable runnable,
T result)
Constructs a new runnable task adapter with the runnable to
run . |
static <T extends Serializable,R> |
task(Runnable runnable,
T result,
AsyncResultsReducer<T,R> reducer)
Constructs a new runnable distributed task adapter with a separate reducer.
|
static <T extends Serializable,R> |
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.
|
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)
Copyright © GigaSpaces.