Class ConnectionMessageReceivedEvent

java.lang.Object
com.mongodb.event.ConnectionMessageReceivedEvent

@Beta @Deprecated public final class ConnectionMessageReceivedEvent extends Object
Deprecated.
- No longer used
An event signifying that a message has been received on a connection.
  • Constructor Details

    • ConnectionMessageReceivedEvent

      public ConnectionMessageReceivedEvent(ConnectionId connectionId, int responseTo, int size)
      Deprecated.
      Constructs a new instance of the event.
      Parameters:
      connectionId - the connection id
      responseTo - the request id that this message is in response to
      size - 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

      public ConnectionId getConnectionId()
      Deprecated.
      Gets the identifier for this connection.
      Returns:
      the connection id
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object