Package com.mongodb.event
Class ServerHeartbeatSucceededEvent
java.lang.Object
com.mongodb.event.ServerHeartbeatSucceededEvent
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
An event for successful completion of a server heartbeat.
- Since:
- 3.3
-
Constructor Summary
ConstructorsConstructorDescriptionServerHeartbeatSucceededEvent(ConnectionId connectionId, BsonDocument reply, long elapsedTimeNanos) Deprecated.Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the connectionId.longgetElapsedTime(TimeUnit timeUnit) Deprecated.Gets the elapsed time in the given time unit.getReply()Deprecated.Gets the reply to the isMaster command executed for this heartbeat.toString()Deprecated.
-
Constructor Details
-
ServerHeartbeatSucceededEvent
public ServerHeartbeatSucceededEvent(ConnectionId connectionId, BsonDocument reply, long elapsedTimeNanos) Deprecated.Construct an instance.- Parameters:
connectionId- the non-null connectionIdreply- the non-null reply to an isMaster commandelapsedTimeNanos- the non-negative elapsed time in nanoseconds
-
-
Method Details
-
getConnectionId
Deprecated.Gets the connectionId.- Returns:
- the connectionId
-
getReply
Deprecated.Gets the reply to the isMaster command executed for this heartbeat.- Returns:
- the reply
-
getElapsedTime
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
-
toString
Deprecated.
-