Class CommandMessage


  • @Deprecated(since="2021-05-27")
    public final class CommandMessage
    extends java.lang.Object
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    A command message that uses OP_MSG or OP_QUERY to send the command.
    • Method Detail

      • getCurrentGlobalId

        public static int getCurrentGlobalId()
        Deprecated.
        Gets the next available unique message identifier.
        Returns:
        the message identifier
      • getId

        public int getId()
        Deprecated.
        Gets the message id.
        Returns:
        the message id
      • getOpCode

        public com.mongodb.internal.connection.OpCode getOpCode()
        Deprecated.
        Gets the op code of the message.
        Returns:
        the op code
      • getSettings

        public MessageSettings getSettings()
        Deprecated.
        Gets the message settings.
        Returns:
        the message settings
      • encode

        public void encode​(BsonOutput bsonOutput,
                           SessionContext sessionContext)
        Deprecated.
        Encoded the message to the given output.
        Parameters:
        bsonOutput - the output
        sessionContext - the session context
      • getEncodingMetadata

        public com.mongodb.internal.connection.RequestMessage.EncodingMetadata getEncodingMetadata()
        Deprecated.
        Gets the encoding metadata from the last attempt to encode this message.
        Returns:
        Get metadata from the last attempt to encode this message. Returns null if there has not yet been an attempt.