public final class Event extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Event.Builder |
Modifier and Type | Method and Description |
---|---|
static Event.Builder |
create(Event event) |
static Event.Builder |
create(String type) |
boolean |
equals(Object o) |
Map<String,Object> |
getData() |
long |
getTimestamp() |
String |
getType() |
Optional<Object> |
getValue(String key) |
<T> Optional<T> |
getValueAs(Class<T> type,
String key) |
int |
hashCode() |
boolean |
hasValue(String key) |
boolean |
isDistributed() |
boolean |
isLocalOrigin() |
boolean |
isSubType(String type) |
boolean |
isType(String type) |
String |
toString() |
public String getType()
public long getTimestamp()
public boolean isDistributed()
public boolean hasValue(String key)
public boolean isType(String type)
public boolean isSubType(String type)
public boolean isLocalOrigin()
public static Event.Builder create(String type)
public static Event.Builder create(Event event)