Package de.otto.synapse.edison.history
Class History
- java.lang.Object
-
- de.otto.synapse.edison.history.History
-
public class History extends java.lang.ObjectThe history of a single entity that is aggregated frommessagesand stored in aStateRepository.A
Historyconsists of anentityId, and a list ofhistory entries.The
entityIdcorresponds to thekeyof an entry in theStateRepositorythat 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 Detail
-
History
public History(java.lang.String entityId, java.util.List<HistoryEntry> entries)
-
-
Method Detail
-
getEntityId
public java.lang.String getEntityId()
-
getEntries
public java.util.List<HistoryEntry> 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
-
-