@Deprecated public class TaskTimeoutException extends TaskRejectedException
AsyncTaskExecutor
rejects to accept
a given task for execution because of the specified timeout.AsyncTaskExecutor.execute(Runnable, long)
,
Serialized FormConstructor and Description |
---|
TaskTimeoutException(String msg)
Deprecated.
Create a new
TaskTimeoutException
with the specified detail message and no root cause. |
TaskTimeoutException(String msg,
Throwable cause)
Deprecated.
Create a new
TaskTimeoutException
with the specified detail message and the given root cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TaskTimeoutException(String msg)
TaskTimeoutException
with the specified detail message and no root cause.msg
- the detail messagepublic TaskTimeoutException(String msg, Throwable cause)
TaskTimeoutException
with the specified detail message and the given root cause.msg
- the detail messagecause
- the root cause (usually from using an underlying
API such as the java.util.concurrent
package)RejectedExecutionException