public final class ServerHeartbeatFailedEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ConnectionId |
connectionId |
private long |
elapsedTimeNanos |
private java.lang.Throwable |
throwable |
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() |
private final ConnectionId connectionId
private final long elapsedTimeNanos
private final java.lang.Throwable throwable
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