Class TaskDecoratingExecutorService<D extends ExecutorService>
java.lang.Object
ch.raffael.meldioc.util.concurrent.SecureExecutorServiceWrapper<D>
ch.raffael.meldioc.util.concurrent.TaskDecoratingExecutorService<D>
- All Implemented Interfaces:
AutoCloseable,Executor,ExecutorService
public abstract class TaskDecoratingExecutorService<D extends ExecutorService>
extends SecureExecutorServiceWrapper<D>
TODO JavaDoc
-
Field Summary
Fields inherited from class ch.raffael.meldioc.util.concurrent.SecureExecutorServiceWrapper
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Runnableprotected abstract <T> Callable<T>protected <T> Collection<? extends Callable<T>>decorateAll(Collection<? extends Callable<T>> tasks) voidinvokeAll(Collection<? extends Callable<T>> tasks) invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) <T> TinvokeAny(Collection<? extends Callable<T>> tasks) <T> TinvokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) Future<?><T> Future<T><T> Future<T>Methods inherited from class ch.raffael.meldioc.util.concurrent.SecureExecutorServiceWrapper
awaitTermination, isShutdown, isTerminated, shutdown, shutdownNowMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
close
-
Constructor Details
-
TaskDecoratingExecutorService
-
-
Method Details
-
decorate
-
decorate
-
decorateAll
protected <T> Collection<? extends Callable<T>> decorateAll(Collection<? extends Callable<T>> tasks) -
execute
-
submit
-
submit
-
submit
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException - Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException - Throws:
InterruptedException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException -
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
-