public abstract static class AbstractEvent.Builder<T extends AbstractEvent.Builder<T>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Long |
trueTimestamp |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
T |
customContext(java.util.List<SelfDescribingJson> context)
Adds a list of custom context entities.
|
protected abstract T |
self() |
T |
subject(Subject subject)
A custom Subject for the event.
|
T |
trueTimestamp(java.lang.Long timestamp)
The true timestamp of that event (as determined by the user).
|
protected abstract T self()
public T customContext(java.util.List<SelfDescribingJson> context)
context
- the list of entitiespublic T trueTimestamp(java.lang.Long timestamp)
timestamp
- the event timestamp as
unix epoch