public final class ServerHeartbeatFailedEvent extends Object
Constructor and Description |
---|
ServerHeartbeatFailedEvent(ConnectionId connectionId,
long elapsedTimeNanos,
Throwable throwable)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
ConnectionId |
getConnectionId()
Gets the connectionId.
|
long |
getElapsedTime(TimeUnit timeUnit)
Gets the elapsed time in the given time unit.
|
Throwable |
getThrowable()
Gets the exceptions that caused the failure
|
String |
toString() |
public ServerHeartbeatFailedEvent(ConnectionId connectionId, long elapsedTimeNanos, 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(TimeUnit timeUnit)
timeUnit
- the non-null timeUnitpublic Throwable getThrowable()