Class 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 Detail

      • HistoryEntry

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

      • 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