Interface AgentExecutionService.ExceptionHandler

Enclosing class:
AgentExecutionService

public static interface AgentExecutionService.ExceptionHandler
Implemented by classes that provide custom handling for uncaught exceptions thrown by AgentExecutionService tasks.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    process(AgentExecutionService.Task task, Throwable throwable, boolean willRestart)
    Handles an exception thrown by AgentExecutionService task.
  • Method Details

    • process

      boolean process(AgentExecutionService.Task task, Throwable throwable, boolean willRestart)
      Handles an exception thrown by AgentExecutionService task.
      Parameters:
      task - Task that threw the exception.
      throwable - Exception.
      willRestart - True if the task will be executed again.
      Returns:
      False if the task should not be restarted, regardless of its settings.