Package com.mongodb.event
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 Summary
Constructors Constructor Description ServerHeartbeatStartedEvent(ConnectionId connectionId)
Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionId
getConnectionId()
Gets the connectionId.String
toString()
-
-
-
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
-
-