Package de.otto.synapse.edison.history
Class History
java.lang.Object
de.otto.synapse.edison.history.History
public class History
extends java.lang.Object
The history of a single entity that is aggregated from
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 Summary
Constructors Constructor Description History(java.lang.String entityId, java.util.List<HistoryEntry> entries) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetEntityId()java.util.List<HistoryEntry>getEntries()inthashCode()java.lang.StringtoString()
-
Constructor Details
-
Method Details
-
getEntityId
public java.lang.String getEntityId() -
getEntries
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-