Class ErrorHandlingTaskExecutor

java.lang.Object
org.springframework.integration.util.ErrorHandlingTaskExecutor
All Implemented Interfaces:
java.util.concurrent.Executor, org.springframework.core.task.TaskExecutor

public class ErrorHandlingTaskExecutor
extends java.lang.Object
implements org.springframework.core.task.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.
  • Constructor Summary

    Constructors 
    Constructor Description
    ErrorHandlingTaskExecutor​(java.util.concurrent.Executor executor, org.springframework.util.ErrorHandler errorHandler)  
  • Method Summary

    Modifier and Type Method Description
    void execute​(java.lang.Runnable task)  
    boolean isSyncExecutor()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ErrorHandlingTaskExecutor

      public ErrorHandlingTaskExecutor​(java.util.concurrent.Executor executor, org.springframework.util.ErrorHandler errorHandler)
  • Method Details

    • isSyncExecutor

      public boolean isSyncExecutor()
    • execute

      public void execute​(java.lang.Runnable task)
      Specified by:
      execute in interface java.util.concurrent.Executor
      Specified by:
      execute in interface org.springframework.core.task.TaskExecutor