public final class CommandFailedEvent extends CommandEvent
Constructor and Description |
---|
CommandFailedEvent(int requestId,
ConnectionDescription connectionDescription,
java.lang.String commandName,
long elapsedTimeNanos,
java.lang.Throwable throwable)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getElapsedTime(java.util.concurrent.TimeUnit timeUnit)
Gets the elapsed time in the given unit of time.
|
java.lang.Throwable |
getThrowable()
Gets the throwable cause of the failure
|
getCommandName, getConnectionDescription, getRequestId
public CommandFailedEvent(int requestId, ConnectionDescription connectionDescription, java.lang.String commandName, long elapsedTimeNanos, java.lang.Throwable throwable)
requestId
- the requestIdconnectionDescription
- the connection descriptioncommandName
- the command nameelapsedTimeNanos
- the non-negative elapsed time in nanoseconds for the operation to completethrowable
- the throwable cause of the failurepublic long getElapsedTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- the time unit in which to get the elapsed timepublic java.lang.Throwable getThrowable()
Copyright © 2010 - 2020 Adobe. All Rights Reserved