Package com.github.ambry.store
Class Message
- java.lang.Object
-
- com.github.ambry.store.Message
-
public class Message extends java.lang.Object
Representation of a message in the store. Contains theMessageInfo
and the message bytes.
-
-
Constructor Summary
Constructors Constructor Description Message(MessageInfo messageInfo, java.io.InputStream msgStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageInfo
getMessageInfo()
java.io.InputStream
getStream()
-
-
-
Constructor Detail
-
Message
public Message(MessageInfo messageInfo, java.io.InputStream msgStream)
- Parameters:
messageInfo
- theMessageInfo
for this message.msgStream
- theInputStream
contains the data of this message.
-
-
Method Detail
-
getMessageInfo
public MessageInfo getMessageInfo()
- Returns:
- the
MessageInfo
for this message.
-
getStream
public java.io.InputStream getStream()
- Returns:
- the
InputStream
that contains the data of this message.
-
-