Interface TaskPool.FailureTask<I,E extends Exception>

Type Parameters:
I - item type being processed
E - exception class which may be raised
Enclosing class:
TaskPool
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 static interface TaskPool.FailureTask<I,E extends Exception>
Callback invoked on a failure.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run(I item, Exception exception)
    process a failure.
  • Method Details

    • run

      void run(I item, Exception exception) throws E
      process a failure.
      Parameters:
      item - item the task is processing
      exception - the exception which was raised.
      Throws:
      E - Exception of type E