public abstract class AbstractEvent extends Object implements Event
| Modifier and Type | Field and Description |
|---|---|
List<SelfDescribingJson> |
customContexts
List of custom contexts associated to the event.
|
Long |
trueTimestamp
Custom timestamp of the event.
|
| Constructor and Description |
|---|
AbstractEvent() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginProcessing(com.snowplowanalytics.snowplow.internal.tracker.Tracker tracker)
Hook method called just before the event processing in order to execute special operations.
|
AbstractEvent |
contexts(List<SelfDescribingJson> contexts)
Adds a list of contexts.
|
void |
endProcessing(com.snowplowanalytics.snowplow.internal.tracker.Tracker tracker)
Hook method called just after the event processing in order to execute special operations.
|
List<SelfDescribingJson> |
getContexts() |
Long |
getTrueTimestamp() |
AbstractEvent |
trueTimestamp(Long trueTimestamp)
Set the custom timestamp of the event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataPayloadpublic final List<SelfDescribingJson> customContexts
@Nullable public Long trueTimestamp
@NonNull public AbstractEvent contexts(@Nullable List<SelfDescribingJson> contexts)
@NonNull public AbstractEvent trueTimestamp(@Nullable Long trueTimestamp)
@NonNull public List<SelfDescribingJson> getContexts()
getContexts in interface Event@Nullable public Long getTrueTimestamp()
getTrueTimestamp in interface Eventpublic void beginProcessing(@NonNull
com.snowplowanalytics.snowplow.internal.tracker.Tracker tracker)
EventbeginProcessing in interface Eventpublic void endProcessing(@NonNull
com.snowplowanalytics.snowplow.internal.tracker.Tracker tracker)
EventendProcessing in interface Event