public class Message extends Object implements Comparable<Message>
Constructor and Description |
---|
Message(List<List<Map.Entry<String,?>>> content,
int chunkIndex,
boolean isLast) |
Message(List<List<Map.Entry<String,?>>> content,
int chunkIndex,
boolean isLast,
List<String> errorMessages)
Constructor that creates message instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Message other) |
int |
getChunkIndex()
Getter for chunk index that this message contains info about.
|
List<List<Map.Entry<String,?>>> |
getContent()
Getter for content of the message.
|
List<String> |
getErrorMessages()
Getter for list of errors.
|
boolean |
isLast()
Getter for flag if this message is the last one.
|
String |
toString() |
public Message(List<List<Map.Entry<String,?>>> content, int chunkIndex, boolean isLast, List<String> errorMessages)
content
- list of key value pairs;chunkIndex
- sequential index of chunk;isLast
- flag that indicates if this message is last;errorMessages
- errors that were encountered during processing;public int getChunkIndex()
public boolean isLast()
public List<List<Map.Entry<String,?>>> getContent()
public List<String> getErrorMessages()
public int compareTo(Message other)
compareTo
in interface Comparable<Message>
Copyright © 2019. All rights reserved.