Class HistoryEntry

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

public class HistoryEntry extends 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 Details

    • HistoryEntry

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

    • getMessageKey

      public String getMessageKey()
    • getMessagePayload

      public Object getMessagePayload()
    • getSenderTimestamp

      public Instant getSenderTimestamp()
    • getReceiverTimestamp

      public Instant getReceiverTimestamp()
    • getChannelName

      public String getChannelName()
    • getDiffs

      public List<Diff> getDiffs()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object