Class Event
-
- All Implemented Interfaces:
public final class EventRepresents a single event
Adobe Systems Incorporated
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEvent.BuilderEvent Builder
-
Method Summary
Modifier and Type Method Description StringgetName()Returns the EventnameStringgetUniqueIdentifier()Returns the EventuniqueIdentifierStringgetSource()Returns the Eventsource valueStringgetType()Returns the Eventtype valuelonggetTimestamp()StringgetResponseID()Pair ID for events dispatched by the receiver(s) in response to this event StringgetParentID()Returns the unique identifier of the parent of this event. Array<String>getMask()EventcloneWithEventData(Map<String, Object> newData)Clones the current Event with updated data Map<String, Object>getEventData()Retrieves the event data for current EventlonggetTimestampInSeconds()StringtoString()-
-
Method Detail
-
getUniqueIdentifier
String getUniqueIdentifier()
Returns the
EventuniqueIdentifier- Returns:
Stringrepresenting the Event uniqueIdentifier
-
getSource
String getSource()
Returns the
Eventsource value- Returns:
Stringrepresenting the Event source
-
getTimestamp
long getTimestamp()
- Returns:
Event timestamp in milliseconds
-
getResponseID
String getResponseID()
Pair ID for events dispatched by the receiver(s) in response to this event
- Returns:
String response pair ID
-
getParentID
String getParentID()
Returns the unique identifier of the parent of this event.
- Returns:
the unique identifier of the parent of this event
-
getMask
Array<String> getMask()
- Returns:
String[]containing properties in the Event and its data that should be used in the hash for EventHistory storage.
-
cloneWithEventData
Event cloneWithEventData(Map<String, Object> newData)
Clones the current Event with updated data
- Parameters:
newData- data associated with the newEvent- Returns:
new cloned
Eventwith provided data
-
getEventData
Map<String, Object> getEventData()
Retrieves the event data for current
Event- Returns:
Map<String, Object>with the Event data key-value pairs. Returns null if the data is null or if an error occurred while processing
-
getTimestampInSeconds
long getTimestampInSeconds()
- Returns:
event timestamp in seconds
-
-
-
-