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
    boolean equals​(java.lang.Object o)  
    java.lang.String getEntityId()  
    java.util.List<HistoryEntry> getEntries()  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • History

      public History​(java.lang.String entityId, java.util.List<HistoryEntry> entries)
  • Method Details

    • getEntityId

      public java.lang.String getEntityId()
    • getEntries

      public java.util.List<HistoryEntry> getEntries()
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object