public class History
extends java.lang.Object
messages and stored in a
StateRepository.
A History consists of an entityId, and a list of history entries.
The entityId corresponds to the key of an entry in the StateRepository that is used
to aggregate messages. Multiple messages from one or more channels may be aggregated into a single entity, so
the history entries contain not only the message, but also the the name of the channel that was the origin of
the message.
| Constructor and Description |
|---|
History(java.lang.String entityId,
java.util.List<HistoryEntry> entries) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getEntityId() |
java.util.List<HistoryEntry> |
getEntries() |
int |
hashCode() |
java.lang.String |
toString() |
public History(java.lang.String entityId,
java.util.List<HistoryEntry> entries)
public java.lang.String getEntityId()
public java.util.List<HistoryEntry> getEntries()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object