Class ServerHeartbeatStartedEvent

java.lang.Object
com.mongodb.event.ServerHeartbeatStartedEvent

public final class ServerHeartbeatStartedEvent extends Object
An event for the start of a server heartbeat.
Since:
3.3
  • Constructor Details

    • ServerHeartbeatStartedEvent

      public ServerHeartbeatStartedEvent(ConnectionId connectionId)
      Construct an instance.
      Parameters:
      connectionId - the non-null connnectionId
  • Method Details

    • getConnectionId

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

      public String toString()
      Overrides:
      toString in class Object