public final class ServerHeartbeatFailedEvent
extends java.lang.Object
Constructor and Description |
---|
ServerHeartbeatFailedEvent(ConnectionId connectionId,
long elapsedTimeNanos,
java.lang.Throwable throwable)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
ConnectionId |
getConnectionId()
Gets the connectionId.
|
long |
getElapsedTime(java.util.concurrent.TimeUnit timeUnit)
Gets the elapsed time in the given time unit.
|
java.lang.Throwable |
getThrowable()
Gets the exceptions that caused the failure
|
java.lang.String |
toString() |
public ServerHeartbeatFailedEvent(ConnectionId connectionId, long elapsedTimeNanos, java.lang.Throwable throwable)
connectionId
- the non-null connectionIdelapsedTimeNanos
- the non-negative elapsed time in nanosecondsthrowable
- the non-null exception that caused the failurepublic ConnectionId getConnectionId()
public long getElapsedTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- the non-null timeUnitpublic java.lang.Throwable getThrowable()
public java.lang.String toString()
toString
in class java.lang.Object