Class DocumentMessage

    • Constructor Detail

      • DocumentMessage

        public DocumentMessage()
        Constructs a new message with no content.
    • Method Detail

      • createReply

        public abstract DocumentReply createReply()
        Creates and returns a reply to this message.
        Returns:
        The created reply.
      • swapState

        public void swapState​(com.yahoo.messagebus.Routable rhs)
        Overrides:
        swapState in class com.yahoo.messagebus.Message
      • getPriority

        public DocumentProtocol.Priority getPriority()
        Returns the priority tag for this message. This is an optional tag added for VDS that is not interpreted by the document protocol.
        Returns:
        The priority.
      • setPriority

        public void setPriority​(DocumentProtocol.Priority priority)
        Sets the priority tag for this message.
        Parameters:
        priority - The priority to set.
      • getLoadType

        public LoadType getLoadType()
      • setLoadType

        public void setLoadType​(LoadType loadType)
      • getApproxSize

        public int getApproxSize()
        Overrides:
        getApproxSize in class com.yahoo.messagebus.Message
      • getProtocol

        public com.yahoo.text.Utf8String getProtocol()
        Specified by:
        getProtocol in class com.yahoo.messagebus.Routable