public class EngineEvent extends Object
Modifier and Type | Method and Description |
---|---|
String |
getAdditional()
Provides additional information from the tag depending on the type of engine
|
Map<String,Object> |
getData()
Return event data as Map
|
<R> R |
getData(Class<R> type)
Return this event's data parsed into the given type.
|
<R> R |
getData(com.google.gson.reflect.TypeToken<R> type)
Return the event data parsed into the given type.
|
String |
getEngine()
Returns the engine name.
|
Optional<String> |
getMinionId()
Returns the id of the minion that triggered the engine event
|
String |
getTimestamp()
Returns the timestamp of the event
|
static Optional<EngineEvent> |
parse(Event event)
Utility method to parse e generic event to a more specific one
|
public String getEngine()
public String getAdditional()
public String getTimestamp()
public Optional<String> getMinionId()
public <R> R getData(com.google.gson.reflect.TypeToken<R> type)
R
- type to parse the data intotype
- type token to parse datapublic <R> R getData(Class<R> type)
R
- type to parse the data intotype
- class to parse datapublic static Optional<EngineEvent> parse(Event event)
event
- the generic event to parseCopyright © 2018. All rights reserved.