Package org.gcube.event.publisher
Class Event
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
org.json.simple.JSONObject
org.gcube.event.publisher.Event
- All Implemented Interfaces:
Serializable,Cloneable,Map,org.json.simple.JSONAware,org.json.simple.JSONStreamAware
public class Event
extends org.json.simple.JSONObject
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object> -
Field Summary
Fields Modifier and Type Field Description static StringNAME_ENTRYstatic StringSENDER_ENTRYstatic StringTIMESTAMP_ENTRYstatic StringTYPE_ENTRYstatic StringUUID_ENTRY -
Constructor Summary
-
Method Summary
Modifier and Type Method Description StringgetName()StringgetSender()java.time.OffsetDateTimegetTimestamp()StringgetType()UUIDgetUUID()protected voidset(String key, String value)protected voidsetAll(Map<String,String> entries)voidsetName(String name)voidsetSender(String sender)voidsetTimestamp(java.time.OffsetDateTime dateTime)voidsetType(String type)voidsetUUID(UUID uuid)Methods inherited from class org.json.simple.JSONObject
escape, toJSONString, toJSONString, toString, toString, writeJSONString, writeJSONStringMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Field Details
-
UUID_ENTRY
- See Also:
- Constant Field Values
-
TIMESTAMP_ENTRY
- See Also:
- Constant Field Values
-
NAME_ENTRY
- See Also:
- Constant Field Values
-
TYPE_ENTRY
- See Also:
- Constant Field Values
-
SENDER_ENTRY
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Event
-
Event
-
-
Method Details
-
set
-
setAll
-
setUUID
-
getUUID
-
setTimestamp
public void setTimestamp(java.time.OffsetDateTime dateTime) -
getTimestamp
public java.time.OffsetDateTime getTimestamp() -
setName
-
getName
-
setType
-
getType
-
setSender
-
getSender
-