Class ErrorHandlingTaskExecutor
java.lang.Object
org.springframework.integration.util.ErrorHandlingTaskExecutor
- All Implemented Interfaces:
Executor
,TaskExecutor
public class ErrorHandlingTaskExecutor extends Object implements TaskExecutor
A
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
.- Author:
- Jonas Partner, Mark Fisher, Gary Russell
-
Constructor Summary
Constructors Constructor Description ErrorHandlingTaskExecutor(Executor executor, ErrorHandler errorHandler)
-
Method Summary
Modifier and Type Method Description void
execute(Runnable task)
boolean
isSyncExecutor()
-
Constructor Details
-
Method Details
-
isSyncExecutor
public boolean isSyncExecutor() -
execute
- Specified by:
execute
in interfaceExecutor
- Specified by:
execute
in interfaceTaskExecutor
-