Package no.unit.nva.events.models
Class EventReference
java.lang.Object
no.unit.nva.events.models.EventReference
- All Implemented Interfaces:
no.unit.nva.commons.json.JsonSerializable,EventBody
public class EventReference
extends Object
implements no.unit.nva.commons.json.JsonSerializable, EventBody
An
EventReference is a reference to an event that has happened and the associated data are stored to a
location. The location is stored in the EventReference as a URI. The EventReference contains also the topic
of the event-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEventReference(String topic, String subtopic, URI uri) EventReference(String topic, String subtopic, URI uri, Instant timestamp) EventReference(String topic, URI uri) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic EventReferencegetTopic()getUri()inthashCode()
-
Field Details
-
TOPIC
- See Also:
-
URI
- See Also:
-
SUBTOPIC
- See Also:
-
TIMESTAMP
- See Also:
-
-
Constructor Details
-
EventReference
-
EventReference
-
EventReference
-
-
Method Details
-
fromJson
-
getTimestamp
-
getSubtopic
-
getTopic
-
getUri
-
extractBucketName
-
toJsonString
- Specified by:
toJsonStringin interfaceno.unit.nva.commons.json.JsonSerializable
-
equals
-
hashCode
public int hashCode()
-