Interface TaskNotifier<R extends Runnable, A>

Type Parameters:
R - the task type
A - the attachment type

public interface TaskNotifier<R extends Runnable, A>
A notifier which is called when tasks start, stop, or fail.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    failed(R runnable, Throwable reason, A attachment)
    A task has failed.
    void
    finished(R runnable, A attachment)
    A task has completed.
    void
    started(R runnable, A attachment)
    A task was started.
  • Method Details

    • started

      void started(R runnable, A attachment)
      A task was started.
      Parameters:
      runnable - the task
      attachment - the attachment
    • failed

      void failed(R runnable, Throwable reason, A attachment)
      A task has failed.
      Parameters:
      runnable - the task
      reason - the reason for the failure
      attachment - the attachment
    • finished

      void finished(R runnable, A attachment)
      A task has completed.
      Parameters:
      runnable - the task
      attachment - the attachment