public class Event
extends java.lang.Object
These types are not visible to applications; they are an implementation detail of the default event processor.
Modifier and Type | Class and Description |
---|---|
static class |
Event.Custom
A custom event created with one of the SDK's
track methods. |
static class |
Event.FeatureRequest
An event generated by a feature flag evaluation.
|
static class |
Event.Identify
An event created with the SDK's
identify method (or generated automatically at startup
if it is a client-side SDK). |
static class |
Event.Index
An event created internally by the SDK to hold user data that may be referenced by multiple events.
|
static class |
Event.MigrationOp
An event generated by a migration operation.
|
Constructor and Description |
---|
Event(long creationDate,
com.launchdarkly.sdk.LDContext context)
Base event constructor.
|
Modifier and Type | Method and Description |
---|---|
com.launchdarkly.sdk.LDContext |
getContext()
The context associated with the event.
|
long |
getCreationDate()
The event timestamp.
|
long |
getSamplingRatio()
Ratio used for sampling the event.
|
public Event(long creationDate, com.launchdarkly.sdk.LDContext context)
creationDate
- the timestamp in millisecondscontext
- the context associated with the eventpublic long getCreationDate()
public com.launchdarkly.sdk.LDContext getContext()
public long getSamplingRatio()
Currently, sampling applies to feature, debug, and migration events.