Class ReconnectFailedEvent

  • All Implemented Interfaces:
    ConnectionId, ConnectionEvent, Event

    public class ReconnectFailedEvent
    extends Object
    Event fired on failed reconnect caused either by I/O issues or during connection initialization.
    Since:
    5.2
    Author:
    Mark Paluch
    • Method Detail

      • getCause

        public Throwable getCause()
        Returns the Throwable that describes the reconnect cause.
        Returns:
        the Throwable that describes the reconnect cause.
      • getAttempt

        public int getAttempt()
        Returns the reconnect attempt counter for the connection. Zero-based counter, 0 represents the first attempt. The counter is reset upon successful reconnect.
        Returns:
        the reconnect attempt counter for the connection. Zero-based counter, 0 represents the first attempt.