Package com.eventstore.dbclient
Class RecordedEvent
- java.lang.Object
-
- com.eventstore.dbclient.RecordedEvent
-
public class RecordedEvent extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RecordedEvent(@NotNull java.lang.String eventStreamId, @NotNull StreamRevision streamRevision, @NotNull java.util.UUID eventId, @NotNull Position position, @NotNull java.util.Map<java.lang.String,java.lang.String> systemMetadata, @javax.validation.constraints.NotNull byte[] eventData, @javax.validation.constraints.NotNull byte[] userMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.StringgetContentType()@NotNull java.time.InstantgetCreated()byte[]getEventData()<A> AgetEventDataAs(java.lang.Class<A> clazz)@NotNull java.util.UUIDgetEventId()@NotNull java.lang.StringgetEventType()@NotNull PositiongetPosition()@NotNull java.lang.StringgetStreamId()@NotNull StreamRevisiongetStreamRevision()byte[]getUserMetadata()
-
-
-
Constructor Detail
-
RecordedEvent
public RecordedEvent(@NotNull @NotNull java.lang.String eventStreamId, @NotNull @NotNull StreamRevision streamRevision, @NotNull @NotNull java.util.UUID eventId, @NotNull @NotNull Position position, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> systemMetadata, @NotNull @javax.validation.constraints.NotNull byte[] eventData, @NotNull @javax.validation.constraints.NotNull byte[] userMetadata)
-
-
Method Detail
-
getStreamId
@NotNull public @NotNull java.lang.String getStreamId()
-
getStreamRevision
@NotNull public @NotNull StreamRevision getStreamRevision()
-
getEventId
@NotNull public @NotNull java.util.UUID getEventId()
-
getEventType
@NotNull public @NotNull java.lang.String getEventType()
-
getEventData
public byte[] getEventData()
-
getEventDataAs
public <A> A getEventDataAs(java.lang.Class<A> clazz) throws java.io.IOException- Throws:
java.io.IOException
-
getUserMetadata
public byte[] getUserMetadata()
-
getCreated
@NotNull public @NotNull java.time.Instant getCreated()
-
getPosition
@NotNull public @NotNull Position getPosition()
-
getContentType
@NotNull public @NotNull java.lang.String getContentType()
-
-