public class DefaultTaskExecutorService extends Object implements TaskExecutorService
ExecutorService that uses the executors support
implemented in GigaSpace.| Constructor and Description |
|---|
DefaultTaskExecutorService(GigaSpace gigaSpace) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
void |
execute(Runnable command) |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> tasks) |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit) |
<T> T |
invokeAny(Collection<? extends Callable<T>> tasks) |
<T> T |
invokeAny(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit) |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
<T> AsyncFuture<T> |
submit(Callable<T> task) |
<T> Future<T> |
submit(Callable<T> task,
Object routing)
Submits a callabale to to be executed on the Space using the provided routing.
|
AsyncFuture<?> |
submit(Runnable task) |
<T> AsyncFuture<T> |
submit(Runnable task,
T result) |
public DefaultTaskExecutorService(GigaSpace gigaSpace)
public <T> AsyncFuture<T> submit(Callable<T> task)
submit in interface ExecutorServicepublic <T> Future<T> submit(Callable<T> task, Object routing)
TaskExecutorServicesubmit in interface TaskExecutorServiceGigaSpace.execute(org.openspaces.core.executor.Task, Object)public AsyncFuture<?> submit(Runnable task)
submit in interface ExecutorServicepublic <T> AsyncFuture<T> submit(Runnable task, T result)
submit in interface ExecutorServicepublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedExceptionpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException
invokeAny in interface ExecutorServiceInterruptedExceptionExecutionExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
invokeAny in interface ExecutorServiceInterruptedExceptionExecutionExceptionTimeoutExceptionpublic void shutdown()
shutdown in interface ExecutorServicepublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServicepublic boolean isShutdown()
isShutdown in interface ExecutorServicepublic boolean isTerminated()
isTerminated in interface ExecutorServicepublic boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface ExecutorServiceInterruptedExceptionCopyright © GigaSpaces.