Package com.mongodb.event
Class ServerHeartbeatFailedEvent
java.lang.Object
com.mongodb.event.ServerHeartbeatFailedEvent
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
An event for server heartbeat failures.
- Since:
- 3.3
-
Constructor Summary
ConstructorsConstructorDescriptionServerHeartbeatFailedEvent(ConnectionId connectionId, long elapsedTimeNanos, Throwable throwable) Deprecated.Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the connectionId.longgetElapsedTime(TimeUnit timeUnit) Deprecated.Gets the elapsed time in the given time unit.Deprecated.Gets the exceptions that caused the failuretoString()Deprecated.
-
Constructor Details
-
ServerHeartbeatFailedEvent
public ServerHeartbeatFailedEvent(ConnectionId connectionId, long elapsedTimeNanos, Throwable throwable) Deprecated.Construct an instance.- Parameters:
connectionId- the non-null connectionIdelapsedTimeNanos- the non-negative elapsed time in nanosecondsthrowable- the non-null exception that caused the failure
-
-
Method Details
-
getConnectionId
Deprecated.Gets the connectionId.- Returns:
- the connectionId
-
getElapsedTime
Deprecated.Gets the elapsed time in the given time unit.- Parameters:
timeUnit- the non-null timeUnit- Returns:
- the elapsed time in the given time unit
-
getThrowable
Deprecated.Gets the exceptions that caused the failure- Returns:
- the exception
-
toString
Deprecated.
-