Interface ConnectionListenerFailureHandler

All Known Implementing Classes:
DefaultConnectionListenerFailureHandler

public interface ConnectionListenerFailureHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    failed(IOProcessor connectionListener, Throwable cause)
    The associated connection listener IOProcessor has failed
    void
    notifyAbnormalTermination(IOProcessor connectionListener, String message, Throwable cause)
    The associated connection listener IOProcessor is terminating abnormally
  • Method Details

    • failed

      boolean failed(IOProcessor connectionListener, Throwable cause)
      The associated connection listener IOProcessor has failed
      Parameters:
      connectionListener - the associated connection listener
      cause - cause of failure
      Returns:
      true if the listener should attempt to re-establish itself, false if it should terminate.
    • notifyAbnormalTermination

      void notifyAbnormalTermination(IOProcessor connectionListener, String message, Throwable cause)
      The associated connection listener IOProcessor is terminating abnormally
      Parameters:
      connectionListener - the associated connection listener
      message - explanation of termination
      cause - last exception that is causing termination