Package com.eventstore.dbclient
Class ResolvedEvent
- java.lang.Object
-
- com.eventstore.dbclient.ResolvedEvent
-
public class ResolvedEvent extends java.lang.Object
Represents 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 boolean
equals(java.lang.Object o)
RecordedEvent
getEvent()
The event, or the resolved linked event if the original event is a link.RecordedEvent
getLink()
The link event if the original event is a link.RecordedEvent
getOriginalEvent()
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.int
hashCode()
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-