public abstract class AbstractEvent extends java.lang.Object implements Event
| Constructor and Description |
|---|
AbstractEvent()
Default constructor.
|
AbstractEvent(@NotNull Event respondTo)
Constructor with event this one responds to.
|
AbstractEvent(EventId correlationId,
EventId causationId)
Constructor with optional data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
EventId |
getCausationId()
Causation identifier.
|
EventId |
getCorrelationId()
Correlation identifier.
|
EventId |
getEventId()
Returns the identifier of the event.
|
java.time.ZonedDateTime |
getTimestamp()
Date, time and time zone the event was created.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEventTypepublic AbstractEvent()
public AbstractEvent(@NotNull
@NotNull Event respondTo)
respondTo - Causing event.public final EventId getEventId()
EventgetEventId in interface Eventpublic final java.time.ZonedDateTime getTimestamp()
EventgetTimestamp in interface Eventpublic final EventId getCorrelationId()
EventgetCorrelationId in interface Eventpublic final EventId getCausationId()
EventgetCausationId in interface Eventpublic final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2019 fuin.org (Germany). All Rights Reserved.