Top Description Constructors
org.springframework.core.task

public Class TaskTimeoutException

extends TaskRejectedException
Class Inheritance
Annotations
@Deprecated
@SuppressWarnings:serial

Deprecated

as of 5.3.16 since the common executors do not support start timeouts

Exception thrown when a AsyncTaskExecutor rejects to accept a given task for execution because of the specified timeout.
Author
Juergen Hoeller
Since
2.0.3
See Also
AsyncTaskExecutor#execute(Runnable, long)

Constructor Summary

AccessConstructor and Description
public
TaskTimeoutException(String
the detail message
msg
)

Create a new TaskTimeoutException with the specified detail message and no root cause.

public
TaskTimeoutException(String
the detail message
msg
,
Throwable
the root cause (usually from using an underlying API such as the java.util.concurrent package)
cause
)

Create a new TaskTimeoutException with the specified detail message and the given root cause.

Constructor Detail

TaskTimeoutExceptionback to summary
public TaskTimeoutException(String msg)

Create a new TaskTimeoutException with the specified detail message and no root cause.

Parameters
msg:String

the detail message

TaskTimeoutExceptionback to summary
public TaskTimeoutException(String msg, Throwable cause)

Create a new TaskTimeoutException with the specified detail message and the given root cause.

Parameters
msg:String

the detail message

cause:Throwable

the root cause (usually from using an underlying API such as the java.util.concurrent package)

See Also
java.util.concurrent.RejectedExecutionException