@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static class ExecutorServiceUtils.ExecutionRejectedException extends Exception
RejectedExecutionException.
The exception also caches the serializable metadata.| Constructor and Description |
|---|
ExecutionRejectedException(Runnable runnable,
ExecutorService es,
RejectedExecutionException cause)
Constructor of the new exception.
|
ExecutionRejectedException(Runnable runnable,
ExecutorService es,
String message,
boolean fatal)
Constructor of the new exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExecutorServiceDisplayName() |
String |
getRunnableDisplayName() |
boolean |
isFatal()
Checks if the issue is fatal.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ExecutionRejectedException(Runnable runnable, ExecutorService es, String message, boolean fatal)
runnable - Runnable, which has been rejectedes - Executor service, which rejected the exceptionmessage - Messagefatal - Indicates if the issue is fatal.
Fatal issue means that the ExecutorService will never accept any other task,
e.g. due to the pending shutdown.public ExecutionRejectedException(Runnable runnable, ExecutorService es, RejectedExecutionException cause)
runnable - Runnable, which has been rejectedes - Executor service, which rejected the exceptioncause - Cause passed as a runtime exceptionpublic String getExecutorServiceDisplayName()
public String getRunnableDisplayName()
public boolean isFatal()
true, the ExecutorService will never accept any other taskCopyright © 2004–2018. All rights reserved.