Package com.mongodb.event
Class ServerHeartbeatFailedEvent
- java.lang.Object
-
- com.mongodb.event.ServerHeartbeatFailedEvent
-
@Deprecated(since="2021-05-27") public final class ServerHeartbeatFailedEvent extends java.lang.ObjectDeprecated.Usage of this API is not supported in AEM as a Cloud Service.An event for server heartbeat failures.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description ServerHeartbeatFailedEvent(ConnectionId connectionId, long elapsedTimeNanos, java.lang.Throwable throwable)Deprecated.Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConnectionIdgetConnectionId()Deprecated.Gets the connectionId.longgetElapsedTime(java.util.concurrent.TimeUnit timeUnit)Deprecated.Gets the elapsed time in the given time unit.java.lang.ThrowablegetThrowable()Deprecated.Gets the exceptions that caused the failurejava.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
ServerHeartbeatFailedEvent
public ServerHeartbeatFailedEvent(ConnectionId connectionId, long elapsedTimeNanos, java.lang.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 Detail
-
getConnectionId
public ConnectionId getConnectionId()
Deprecated.Gets the connectionId.- Returns:
- the connectionId
-
getElapsedTime
public long getElapsedTime(java.util.concurrent.TimeUnit timeUnit)
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
public java.lang.Throwable getThrowable()
Deprecated.Gets the exceptions that caused the failure- Returns:
- the exception
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-