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.ObjectBase 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 ofEventProcessorif desired.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEvent.AliasEventAn event generated by aliasing usersstatic classEvent.CustomA custom event created withLDClientInterface.track(String, LDUser)or one of its overloads.static classEvent.FeatureRequestAn event generated by a feature flag evaluation.static classEvent.IdentifyAn event created withLDClientInterface.identify(LDUser).static classEvent.IndexAn 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 longgetCreationDate()The event timestamp.LDUsergetUser()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
-
-