Package ubic.gemma.core.util.concurrent
Class AbstractDelegatingExecutorService
java.lang.Object
ubic.gemma.core.util.concurrent.AbstractDelegatingExecutor
ubic.gemma.core.util.concurrent.AbstractDelegatingExecutorService
- All Implemented Interfaces:
Executor,ExecutorService,DelegatingExecutor,DelegatingExecutorService
- Direct Known Subclasses:
BatchTaskExecutorService,DelegatingThreadContextExecutorService,DelegatingThreadContextScheduledExecutorService
public abstract class AbstractDelegatingExecutorService
extends AbstractDelegatingExecutor
implements DelegatingExecutorService
A delegating executor service inspired by
DelegatingSecurityContextExecutorService.- Author:
- poirigui
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long l, TimeUnit timeUnit) The executor this is delegating for.invokeAll(Collection<? extends Callable<T>> collection) invokeAll(Collection<? extends Callable<T>> collection, long l, TimeUnit timeUnit) <T> TinvokeAny(Collection<? extends Callable<T>> collection) <T> TinvokeAny(Collection<? extends Callable<T>> collection, long l, TimeUnit timeUnit) booleanbooleanvoidshutdown()Future<?> <T> Future<T> <T> Future<T> protected abstract <T> Callable<T> Methods inherited from class ubic.gemma.core.util.concurrent.AbstractDelegatingExecutor
execute, wrap
-
Constructor Details
-
AbstractDelegatingExecutorService
-
-
Method Details
-
wrap
-
getDelegate
Description copied from interface:DelegatingExecutorThe executor this is delegating for.- Specified by:
getDelegatein interfaceDelegatingExecutor- Specified by:
getDelegatein interfaceDelegatingExecutorService
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceExecutorService
-
shutdownNow
- Specified by:
shutdownNowin interfaceExecutorService
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceExecutorService
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceExecutorService
-
awaitTermination
- Specified by:
awaitTerminationin interfaceExecutorService- Throws:
InterruptedException
-
submit
- Specified by:
submitin interfaceExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService
-
invokeAll
@Nonnull public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> collection) throws InterruptedException - Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAll
@Nonnull public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> collection, long l, TimeUnit timeUnit) throws InterruptedException - Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAny
@Nonnull public <T> T invokeAny(Collection<? extends Callable<T>> collection) throws InterruptedException, ExecutionException - Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> collection, long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-