Package com.eventstore.dbclient
Class RecordedEvent
java.lang.Object
com.eventstore.dbclient.RecordedEvent
Represents a previously written event.
-
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull StringThe event's content type.@NotNull InstantWhen the event was created.byte[]The event's payload data.<A> AgetEventDataAs(Class<A> clazz) Deprecated.@NotNull UUIDThe event's unique identifier.@NotNull StringThe event's type.@NotNull PositionThe event's transaction log position.@javax.validation.constraints.NotNull longThe event's stream revision number.@NotNull StringThe stream that event belongs to.byte[]The event's metadata.inthashCode()toString()
-
Method Details
-
getStreamId
The stream that event belongs to. -
getRevision
@NotNull public @javax.validation.constraints.NotNull long getRevision()The event's stream revision number. -
getEventId
The event's unique identifier. -
getEventType
The event's type. -
getEventData
public byte[] getEventData()The event's payload data. -
getEventDataAs
Deprecated.Deserialized representation of the event's payload. In this case, the payload is supposed to be JSON.- Throws:
IOException
-
getUserMetadata
public byte[] getUserMetadata()The event's metadata. -
getCreated
When the event was created. -
getPosition
The event's transaction log position. -
getContentType
The event's content type. Could be application/json or application/octet-stream. -
equals
-
hashCode
public int hashCode() -
toString
-