Package com.github.ambry.store
Interface MessageWriteSet
-
public interface MessageWriteSet
The message set that needs to be written to a write interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<MessageInfo>
getMessageSetInfo()
Returns info about the messages contained in this write set.long
writeTo(Write writeChannel)
Write the messages in this set to the given write channel
-
-
-
Method Detail
-
writeTo
long writeTo(Write writeChannel) throws StoreException
Write the messages in this set to the given write channel- Parameters:
writeChannel
- The write interface to write the messages to- Returns:
- The size in bytes that was written to the write interface
- Throws:
StoreException
-
getMessageSetInfo
java.util.List<MessageInfo> getMessageSetInfo()
Returns info about the messages contained in this write set. The messages need not be ordered in any specific format- Returns:
- The list of message info about the message set
-
-