Package com.mongodb.event
Class ConnectionMessageReceivedEvent
java.lang.Object
com.mongodb.event.ConnectionMessageReceivedEvent
Deprecated.
- No longer used
An event signifying that a message has been received on a connection.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionMessageReceivedEvent(ConnectionId connectionId, int responseTo, int size) Deprecated.Constructs a new instance of the event. -
Method Summary
-
Constructor Details
-
ConnectionMessageReceivedEvent
Deprecated.Constructs a new instance of the event.- Parameters:
connectionId- the connection idresponseTo- the request id that this message is in response tosize- the size of the received message
-
-
Method Details
-
getResponseTo
public int getResponseTo()Deprecated.The responseTo identifier of the message. This corresponds to the requestId of the message that this message is in reply to.- Returns:
- the responseTo identifier
-
getSize
public int getSize()Deprecated.Gets the size of the received message.- Returns:
- the size of the received message
-
getConnectionId
Deprecated.Gets the identifier for this connection.- Returns:
- the connection id
-
toString
Deprecated.
-