public class BaseEvent extends AnnotableData implements Event
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
action |
protected java.util.Set<java.lang.String> |
tags |
protected long |
timestamp |
annotations
separator
Modifier | Constructor and Description |
---|---|
|
BaseEvent() |
protected |
BaseEvent(long timestamp) |
protected |
BaseEvent(long timestamp,
java.lang.String action) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAction() |
java.util.Set<java.lang.String> |
getTags() |
long |
getTimestamp() |
static BaseEvent |
of(long timestamp) |
static BaseEvent |
of(long timestamp,
java.lang.String action) |
void |
setAction(java.lang.String action) |
void |
setTags(java.util.Set<java.lang.String> tags) |
void |
setTimestamp(long timestamp) |
getAnnotations, of, of, setAnnotations
flatten, fromMap, fromString, get, get, get, get, merge, merge, merge, merge, of, put, put, put, structure
equals, fromMap, fromString, hashCode, toMap, toMap, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
any, get, put
protected long timestamp
protected java.lang.String action
protected java.util.Set<java.lang.String> tags
public BaseEvent()
protected BaseEvent(long timestamp)
protected BaseEvent(long timestamp, java.lang.String action)
public static BaseEvent of(long timestamp)
public static BaseEvent of(long timestamp, java.lang.String action)
public void setTimestamp(long timestamp)
public void setAction(java.lang.String action)
public void setTags(java.util.Set<java.lang.String> tags)
public long getTimestamp()
getTimestamp
in interface Event
public java.util.Set<java.lang.String> getTags()