org.springframework.integration.util
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorHandlingTaskExecutor
public ErrorHandlingTaskExecutor(Executor executor,
ErrorHandler errorHandler)
execute
public void execute(Runnable task)
- Specified by:
execute
in interface Executor
- Specified by:
execute
in interface TaskExecutor
Copyright © 2010. All Rights Reserved.