Package org.apache.ignite.client.events

## Class HandshakeFailEvent

- java.lang.Object
- - org.apache.ignite.client.events.ConnectionEvent
  - - org.apache.ignite.client.events.HandshakeFailEvent

-     public class HandshakeFailEvent
      extends ConnectionEvent

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `HandshakeFailEvent​(ConnectionDescription conn, long elapsedTimeNanos, Throwable throwable)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `long` | `elapsedTime​(TimeUnit timeUnit)` | Get the elapsed time of the handshake.
    `Throwable` | `throwable()` | Get a cause of the failure.

    - ### Methods inherited from class org.apache.ignite.client.events.ConnectionEvent

      `connectionDescription`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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.