public class ErrorHandlingTaskExecutor
extends java.lang.Object
implements org.springframework.core.task.TaskExecutor
TaskExecutor
implementation that wraps an existing Executor
instance in order to catch any exceptions. If an exception is thrown, it
will be handled by the provided ErrorHandler
.Constructor and Description |
---|
ErrorHandlingTaskExecutor(java.util.concurrent.Executor executor,
org.springframework.util.ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.Runnable task) |