Package com.eventstore.dbclient
Class ResolvedEvent
- java.lang.Object
-
- com.eventstore.dbclient.ResolvedEvent
-
public class ResolvedEvent extends java.lang.ObjectRepresents an event with a potential link.
-
-
Constructor Summary
Constructors Constructor Description ResolvedEvent(RecordedEvent event, RecordedEvent link, Position position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)RecordedEventgetEvent()The event, or the resolved linked event if the original event is a link.RecordedEventgetLink()The link event if the original event is a link.RecordedEventgetOriginalEvent()Returns the event that was read or which triggered the subscription.java.util.Optional<Position>getPosition()Returns the transaction log position of the resolved event.inthashCode()
-
-
-
Constructor Detail
-
ResolvedEvent
public ResolvedEvent(RecordedEvent event, RecordedEvent link, Position position)
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-