Class Message


  • public class Message
    extends java.lang.Object
    Representation of a message in the store. Contains the MessageInfo and the message bytes.
    • Constructor Summary

      Constructors 
      Constructor Description
      Message​(MessageInfo messageInfo, java.io.InputStream msgStream)  
    • Constructor Detail

      • Message

        public Message​(MessageInfo messageInfo,
                       java.io.InputStream msgStream)
        Parameters:
        messageInfo - the MessageInfo for this message.
        msgStream - the InputStream contains the data of this message.
    • Method Detail

      • getStream

        public java.io.InputStream getStream()
        Returns:
        the InputStream that contains the data of this message.