Interface EngineListener

All Known Implementing Classes:
EngineListenerAdapter, EngineListenerSplitter

public interface EngineListener
Receives status notification from Engine.
Author:
Kohsuke Kawaguchi
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called when Engine.run() exits, whether due to error(java.lang.Throwable) or normally.
    default void
    Fatal error that's non recoverable.
    default void
    Called when a connection is terminated.
    default void
    Called when a re-connection is about to be attempted.
    default void
    Status message that indicates the progress of the operation.
    default void
    Status message, with additional stack trace that indicates an error that was recovered.
  • Method Details

    • status

      default void status(String msg)
      Status message that indicates the progress of the operation.
    • status

      default void status(String msg, Throwable t)
      Status message, with additional stack trace that indicates an error that was recovered.
    • error

      default void error(Throwable t)
      Fatal error that's non recoverable.
    • onDisconnect

      default void onDisconnect()
      Called when a connection is terminated.
    • onReconnect

      default void onReconnect()
      Called when a re-connection is about to be attempted.
      Since:
      2.0
    • completed

      default void completed()
      Called when Engine.run() exits, whether due to error(java.lang.Throwable) or normally.