public abstract class AbstractEvent extends java.lang.Object implements Event
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractEvent.Builder<T extends AbstractEvent.Builder<T>> |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<SelfDescribingJson> |
context |
protected Subject |
subject |
protected java.lang.Long |
trueTimestamp
The trueTimestamp may be null if none is set.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEvent(AbstractEvent.Builder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
static AbstractEvent.Builder<?> |
builder() |
java.util.List<SelfDescribingJson> |
getContext() |
abstract Payload |
getPayload() |
Subject |
getSubject() |
java.lang.Long |
getTrueTimestamp() |
protected TrackerPayload |
putTrueTimestamp(TrackerPayload payload)
Adds the default parameters to a TrackerPayload object.
|
protected final java.util.List<SelfDescribingJson> context
protected java.lang.Long trueTimestamp
protected final Subject subject
protected AbstractEvent(AbstractEvent.Builder<?> builder)
public static AbstractEvent.Builder<?> builder()
public java.util.List<SelfDescribingJson> getContext()
getContext in interface Eventpublic java.lang.Long getTrueTimestamp()
getTrueTimestamp in interface Eventpublic Subject getSubject()
getSubject in interface Eventpublic abstract Payload getPayload()
getPayload in interface Eventprotected TrackerPayload putTrueTimestamp(TrackerPayload payload)
payload - the payload to add to.