Class RequestFailEvent

    • Constructor Detail

      • RequestFailEvent

        public RequestFailEvent​(ConnectionDescription conn,
                                long requestId,
                                short opCode,
                                String opName,
                                long elapsedTimeNanos,
                                Throwable throwable)
        Parameters:
        conn - Connection description.
        requestId - Request id.
        opCode - Operation code.
        opName - Operation name.
        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 request.
        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.