Package org.apache.ignite.client.events
Class RequestFailEvent
- java.lang.Object
- 
- org.apache.ignite.client.events.RequestEvent
- 
- org.apache.ignite.client.events.RequestFailEvent
 
 
- 
 public class RequestFailEvent extends RequestEvent 
- 
- 
Constructor SummaryConstructors Constructor Description RequestFailEvent(ConnectionDescription conn, long requestId, short opCode, String opName, long elapsedTimeNanos, Throwable throwable)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longelapsedTime(TimeUnit timeUnit)Get the elapsed time of the request.Throwablethrowable()Get a cause of the failure.- 
Methods inherited from class org.apache.ignite.client.events.RequestEventconnectionDescription, operationCode, operationName, requestId
 
- 
 
- 
- 
- 
Constructor Detail- 
RequestFailEventpublic 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- 
elapsedTimepublic 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.
 
 - 
throwablepublic Throwable throwable() Get a cause of the failure.- Returns:
- a cause of the failure.
 
 
- 
 
-