Class Event
- java.lang.Object
-
- com.launchdarkly.sdk.server.interfaces.Event
-
- Direct Known Subclasses:
Event.AliasEvent
,Event.Custom
,Event.FeatureRequest
,Event.Identify
,Event.Index
public class Event extends java.lang.Object
Base class for all analytics events that are generated by the client. Also defines all of its own subclasses. Applications do not need to reference these types directly. They are used internally in analytics event processing, and are visible only to support writing a custom implementation ofEventProcessor
if desired.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Event.AliasEvent
An event generated by aliasing usersstatic class
Event.Custom
A custom event created withLDClientInterface.track(String, LDUser)
or one of its overloads.static class
Event.FeatureRequest
An event generated by a feature flag evaluation.static class
Event.Identify
An event created withLDClientInterface.identify(LDUser)
.static class
Event.Index
An event created internally by the SDK to hold user data that may be referenced by multiple events.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCreationDate()
The event timestamp.LDUser
getUser()
The user associated with the event.
-
-
-
Constructor Detail
-
Event
public Event(long creationDate, LDUser user)
Base event constructor.- Parameters:
creationDate
- the timestamp in millisecondsuser
- the user associated with the event
-
-
Method Detail
-
getCreationDate
public long getCreationDate()
The event timestamp.- Returns:
- the timestamp in milliseconds
-
getUser
public LDUser getUser()
The user associated with the event.- Returns:
- the user object
-
-