Package com.mongodb.event
Class ConnectionMessageReceivedEvent
- java.lang.Object
-
- com.mongodb.event.ConnectionMessageReceivedEvent
-
@Beta @Deprecated public final class ConnectionMessageReceivedEvent extends Object
Deprecated.- No longer usedAn event signifying that a message has been received on a connection.
-
-
Constructor Summary
Constructors Constructor Description ConnectionMessageReceivedEvent(ConnectionId connectionId, int responseTo, int size)
Deprecated.Constructs a new instance of the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConnectionId
getConnectionId()
Deprecated.Gets the identifier for this connection.int
getResponseTo()
Deprecated.The responseTo identifier of the message.int
getSize()
Deprecated.Gets the size of the received message.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
ConnectionMessageReceivedEvent
public ConnectionMessageReceivedEvent(ConnectionId connectionId, int responseTo, int size)
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 Detail
-
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
public ConnectionId getConnectionId()
Deprecated.Gets the identifier for this connection.- Returns:
- the connection id
-
-