Class HandshakeFailEvent

    • Constructor Detail

      • HandshakeFailEvent

        public HandshakeFailEvent​(ConnectionDescription conn,
                                  long elapsedTimeNanos,
                                  Throwable throwable)
        Parameters:
        conn - Connection description.
        elapsedTimeNanos - Elapsed time in nanoseconds.
        throwable - Throwable that caused the failure.
    • Method Detail

      • elapsedTime

        public long elapsedTime​(TimeUnit timeUnit)
        Get the elapsed time of the handshake.
        Parameters:
        timeUnit - Desired time unit in which to return the elapsed time.
        Returns:
        the elapsed time.
      • throwable

        public Throwable throwable()
        Get a cause of the failure.
        Returns:
        a cause of the failure.