Class ServerHeartbeatFailedEvent


  • public final class ServerHeartbeatFailedEvent
    extends java.lang.Object
    An event for server heartbeat failures.
    Since:
    3.3
    • Constructor Summary

      Constructors 
      Constructor Description
      ServerHeartbeatFailedEvent​(ConnectionId connectionId, long elapsedTimeNanos, java.lang.Throwable throwable)
      Construct an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ConnectionId getConnectionId()
      Gets the connectionId.
      long getElapsedTime​(java.util.concurrent.TimeUnit timeUnit)
      Gets the elapsed time in the given time unit.
      java.lang.Throwable getThrowable()
      Gets the exceptions that caused the failure
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ServerHeartbeatFailedEvent

        public ServerHeartbeatFailedEvent​(ConnectionId connectionId,
                                          long elapsedTimeNanos,
                                          java.lang.Throwable throwable)
        Construct an instance.
        Parameters:
        connectionId - the non-null connectionId
        elapsedTimeNanos - the non-negative elapsed time in nanoseconds
        throwable - the non-null exception that caused the failure
    • Method Detail

      • getConnectionId

        public ConnectionId getConnectionId()
        Gets the connectionId.
        Returns:
        the connectionId
      • getElapsedTime

        public long getElapsedTime​(java.util.concurrent.TimeUnit timeUnit)
        Gets the elapsed time in the given time unit.
        Parameters:
        timeUnit - the non-null timeUnit
        Returns:
        the elapsed time in the given time unit
      • getThrowable

        public java.lang.Throwable getThrowable()
        Gets the exceptions that caused the failure
        Returns:
        the exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object