Package jenkins.util
Class InterceptingExecutorService
java.lang.Object
jenkins.util.InterceptingExecutorService
- All Implemented Interfaces:
- Executor,- ExecutorService
- Direct Known Subclasses:
- ContextResettingExecutorService,- ErrorLoggingExecutorService,- ImpersonatingExecutorService,- InterceptingScheduledExecutorService,- SecurityContextExecutorService
ExecutorService that wraps all the tasks that run inside.- Since:
- 1.557
- Author:
- Kohsuke Kawaguchi
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) protected ExecutorServicedelegate()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) booleanbooleanvoidshutdown()Future<?> <T> Future<T> <T> Future<T> toString()protected abstract Runnableprotected abstract <V> Callable<V> 
- 
Constructor Details- 
InterceptingExecutorService
 
- 
- 
Method Details- 
wrap
- 
wrap
- 
delegate
- 
submit- Specified by:
- submitin interface- ExecutorService
 
- 
submit- Specified by:
- submitin interface- ExecutorService
 
- 
submit- Specified by:
- submitin interface- ExecutorService
 
- 
invokeAllpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException - Specified by:
- invokeAllin interface- ExecutorService
- Throws:
- InterruptedException
 
- 
invokeAllpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException - Specified by:
- invokeAllin interface- ExecutorService
- Throws:
- InterruptedException
 
- 
invokeAnypublic <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException - Specified by:
- invokeAnyin interface- ExecutorService
- Throws:
- InterruptedException
- ExecutionException
 
- 
invokeAnypublic <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
- invokeAnyin interface- ExecutorService
- Throws:
- InterruptedException
- ExecutionException
- TimeoutException
 
- 
execute
- 
awaitTermination- Specified by:
- awaitTerminationin interface- ExecutorService
- Throws:
- InterruptedException
 
- 
isShutdownpublic boolean isShutdown()- Specified by:
- isShutdownin interface- ExecutorService
 
- 
isTerminatedpublic boolean isTerminated()- Specified by:
- isTerminatedin interface- ExecutorService
 
- 
shutdownpublic void shutdown()- Specified by:
- shutdownin interface- ExecutorService
 
- 
shutdownNow- Specified by:
- shutdownNowin interface- ExecutorService
 
- 
toString
 
-