public class TaskTimeoutException extends TaskRejectedException
AsyncTaskExecutor rejects to accept
a given task for execution because of the specified timeout.AsyncTaskExecutor.execute(Runnable, long),
TaskRejectedException,
Serialized Form| Constructor and Description |
|---|
TaskTimeoutException(java.lang.String msg)
Create a new
TaskTimeoutException
with the specified detail message and no root cause. |
TaskTimeoutException(java.lang.String msg,
java.lang.Throwable cause)
Create a new
TaskTimeoutException
with the specified detail message and the given root cause. |
public TaskTimeoutException(java.lang.String msg)
TaskTimeoutException
with the specified detail message and no root cause.msg - the detail messagepublic TaskTimeoutException(java.lang.String msg,
java.lang.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