Class ResolvedEvent

java.lang.Object
com.eventstore.dbclient.ResolvedEvent

public class ResolvedEvent extends Object
Represents an event with a potential link.
  • Constructor Details

  • Method Details

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