public class Event
extends java.lang.Object
| Constructor and Description |
|---|
Event()
Default Constructor
|
Event(java.lang.String payload)
Create a new Event with the given payload
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCommitTimestamp()
Retrieve the time where the event was persisted in the
EventStream |
java.lang.String |
getPayload()
Retrieve the event payload.
|
long |
getSequence()
Retrieve the sequence order for the event in the
EventStream |
void |
setCommitTimestamp(long commitTimestamp)
Inform the time where the event was persisted in the
EventStream |
void |
setPayload(java.lang.String payload)
Inform the event payload.
|
void |
setSequence(long sequence)
Inform the sequence order for the event in the
EventStream |
public Event()
public Event(java.lang.String payload)
payload - Any data associatedpublic java.lang.String getPayload()
public void setPayload(java.lang.String payload)
payload - The event payloadpublic long getSequence()
EventStreampublic void setSequence(long sequence)
EventStreamsequence - The order of the event in the streampublic long getCommitTimestamp()
EventStreampublic void setCommitTimestamp(long commitTimestamp)
EventStreamcommitTimestamp - When the event was persisted in the stream