public abstract class EventDTO
extends java.lang.Object
implements java.io.Serializable
EventDTO is a abstract class that generalize all events dto for http protocol.
Jackson Processor serialize Event subclasses for transmitting. To recognize which subtype of Event
received parser add to json event object property "@type" with name of Event subtype.
Additional operations and subtypes names defined by Jackson annotations.
| Constructor and Description |
|---|
EventDTO() |
EventDTO(org.ametiste.scm.messaging.data.event.Event event) |
EventDTO(java.util.UUID id,
long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
abstract org.ametiste.scm.messaging.data.event.Event |
convert()
Convert entire data to corresponding
Event subtype object. |
java.util.UUID |
getId() |
long |
getTimestamp() |