Class HistoryEntry

java.lang.Object
de.otto.synapse.edison.history.HistoryEntry

public class HistoryEntry
extends java.lang.Object
An entry in the History of some entity in a StateRepository.

A HistoryEntry consists of a single message, together with the name of the channel and a list of diffs

  • Constructor Summary

    Constructors 
    Constructor Description
    HistoryEntry​(de.otto.synapse.message.Message<?> message, java.lang.String channelName, java.util.List<Diff> diffs)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    java.lang.String getChannelName()  
    java.util.List<Diff> getDiffs()  
    java.lang.String getMessageKey()  
    java.lang.Object getMessagePayload()  
    java.time.Instant getReceiverTimestamp()  
    java.time.Instant getSenderTimestamp()  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • HistoryEntry

      public HistoryEntry​(de.otto.synapse.message.Message<?> message, java.lang.String channelName, java.util.List<Diff> diffs)
  • Method Details

    • getMessageKey

      public java.lang.String getMessageKey()
    • getMessagePayload

      public java.lang.Object getMessagePayload()
    • getSenderTimestamp

      public java.time.Instant getSenderTimestamp()
    • getReceiverTimestamp

      public java.time.Instant getReceiverTimestamp()
    • getChannelName

      public java.lang.String getChannelName()
    • getDiffs

      public java.util.List<Diff> getDiffs()
    • 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