Class ConnectionMessagesSentEvent

java.lang.Object
com.mongodb.event.ConnectionMessagesSentEvent

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

    • ConnectionMessagesSentEvent

      public ConnectionMessagesSentEvent(ConnectionId connectionId, int requestId, int size)
      Deprecated.
      Constructs a new instance of the event.
      Parameters:
      connectionId - the connection id
      requestId - the request id
      size - the size of the sent message
  • Method Details

    • getConnectionId

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

      public int getRequestId()
      Deprecated.
      Gets the request id of the message that was sent.
      Returns:
      the request id
    • getSize

      public int getSize()
      Deprecated.
      Gets the size of the sent message.
      Returns:
      the size of the sent message
    • toString

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