Class ServerHeartbeatFailedEvent

java.lang.Object
com.mongodb.event.ServerHeartbeatFailedEvent

@Deprecated(since="2021-05-27") public final class ServerHeartbeatFailedEvent extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
An event for server heartbeat failures.
Since:
3.3
  • Constructor Details

    • ServerHeartbeatFailedEvent

      public ServerHeartbeatFailedEvent(ConnectionId connectionId, long elapsedTimeNanos, Throwable throwable)
      Deprecated.
      Construct an instance.
      Parameters:
      connectionId - the non-null connectionId
      elapsedTimeNanos - the non-negative elapsed time in nanoseconds
      throwable - the non-null exception that caused the failure
  • Method Details

    • getConnectionId

      public ConnectionId getConnectionId()
      Deprecated.
      Gets the connectionId.
      Returns:
      the connectionId
    • getElapsedTime

      public long getElapsedTime(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 Throwable getThrowable()
      Deprecated.
      Gets the exceptions that caused the failure
      Returns:
      the exception
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object