Package com.enonic.xp.event
Class Event
- java.lang.Object
-
- com.enonic.xp.event.Event
-
- All Implemented Interfaces:
Serializable
public final class Event extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEvent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Event.Buildercreate(Event event)static Event.Buildercreate(String type)booleanequals(Object o)Map<String,Object>getData()longgetTimestamp()StringgetType()Optional<Object>getValue(String key)<T> Optional<T>getValueAs(Class<T> type, String key)inthashCode()booleanhasValue(String key)booleanisDistributed()booleanisLocalOrigin()booleanisSubType(String type)booleanisType(String type)StringtoString()
-
-
-
Method Detail
-
getType
public String getType()
-
getTimestamp
public long getTimestamp()
-
isDistributed
public boolean isDistributed()
-
hasValue
public boolean hasValue(String key)
-
isType
public boolean isType(String type)
-
isSubType
public boolean isSubType(String type)
-
isLocalOrigin
public boolean isLocalOrigin()
-
create
public static Event.Builder create(String type)
-
create
public static Event.Builder create(Event event)
-
-