Interface IThreadPoolRetryHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IThreadPoolRetryHandler
Interface which specifies a handler which will be called when the thread pool throws any exception.
Since:
4.2.0 - 2022-07-14
Author:
hypfvieh
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    handle(ExecutorNames _executor, Exception _ex)
    Called to handle an exception.
  • Method Details

    • handle

      boolean handle(ExecutorNames _executor, Exception _ex)
      Called to handle an exception.

      This method should return true to retry execution or false to just ignore the error and drop the unhandled message.

      Parameters:
      _executor - the executor which has thrown the exception
      _ex - the exception which was thrown
      Returns:
      true to retry execution of the failed runnable, false to ignore runnable