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 contexts.
|
T |
deviceCreatedTimestamp(long timestamp)
Adjust the device-created timestamp.
|
T |
eventId(java.lang.String eventId)
A custom eventId for the event.
|
protected abstract T |
self() |
T |
subject(Subject subject)
A custom subject for the event.
|
T |
timestamp(long timestamp)
Deprecated.
|
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 contexts@Deprecated public T timestamp(long timestamp)
timestamp - the event timestamp as
unix epochtrueTimestamp or deviceCreatedTimestamppublic T deviceCreatedTimestamp(long timestamp)
trueTimestamp.timestamp - the event timestamp as
unix epochpublic T trueTimestamp(java.lang.Long timestamp)
timestamp - the event timestamp as
unix epochpublic T eventId(java.lang.String eventId)
eventId - the eventId