Class ResolvedEvent


  • public class ResolvedEvent
    extends java.lang.Object
    Represents an event with a potential link.
    • Method Detail

      • getEvent

        public RecordedEvent getEvent()
        The event, or the resolved linked event if the original event is a link.
      • getLink

        public RecordedEvent getLink()
        The link event if the original event is a link.
      • getOriginalEvent

        public RecordedEvent getOriginalEvent()
        Returns the event that was read or which triggered the subscription. If the resolved event represents a link event, the link will be the original event, otherwise it will be the event.
      • getPosition

        public java.util.Optional<Position> getPosition()
        Returns the transaction log position of the resolved event.
        See Also:
        Position
      • 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