Package com.mongodb.event
Class ServerHeartbeatStartedEvent
- java.lang.Object
-
- com.mongodb.event.ServerHeartbeatStartedEvent
-
public final class ServerHeartbeatStartedEvent extends java.lang.ObjectAn event for the start of a server heartbeat.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description ServerHeartbeatStartedEvent(ConnectionId connectionId)Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionIdgetConnectionId()Gets the connectionId.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ServerHeartbeatStartedEvent
public ServerHeartbeatStartedEvent(ConnectionId connectionId)
Construct an instance.- Parameters:
connectionId- the non-null connnectionId
-
-
Method Detail
-
getConnectionId
public ConnectionId getConnectionId()
Gets the connectionId.- Returns:
- the connectionId
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-