Package jenkins.util
Class ErrorLoggingExecutorService
- java.lang.Object
-
- jenkins.util.InterceptingExecutorService
-
- jenkins.util.ErrorLoggingExecutorService
-
- All Implemented Interfaces:
Executor
,ExecutorService
public class ErrorLoggingExecutorService extends InterceptingExecutorService
Executor service that logs unchecked exceptions / errors inRunnable
. Exceptions thrown fromCallable
are not not logged, under the assumption that something is checkingFuture.get()
.- Since:
- 2.380
-
-
Constructor Summary
Constructors Constructor Description ErrorLoggingExecutorService(ExecutorService base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Runnable
wrap(Runnable r)
protected <V> Callable<V>
wrap(Callable<V> r)
-
Methods inherited from class jenkins.util.InterceptingExecutorService
awaitTermination, delegate, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit, toString
-
-
-
-
Constructor Detail
-
ErrorLoggingExecutorService
public ErrorLoggingExecutorService(ExecutorService base)
-
-
Method Detail
-
wrap
protected Runnable wrap(Runnable r)
- Specified by:
wrap
in classInterceptingExecutorService
-
wrap
protected <V> Callable<V> wrap(Callable<V> r)
- Specified by:
wrap
in classInterceptingExecutorService
-
-