|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventMetaData
Interface towards the meta data properties of an event. Typically, meta-data is information that gives information about the context or origin of an event. Transaction identifiers, the executing user's principal, correlation identifiers are examples of such information.
The meta data of an event will always contain the event identifier and the event creation timestamp. Note that meta data should be considered immutable from the moment an event is stored in the event store or dispatched on the event bus, whichever comes first.
| Method Summary | |
|---|---|
boolean |
containsKey(String key)
Indicates whether the given key has been associated with a value (which includes
null). |
Serializable |
get(String key)
Returns the value associated with the given key. |
UUID |
getEventIdentifier()
Returns the identifier of this event. |
org.joda.time.LocalDateTime |
getTimestamp()
Returns the time this event was created. |
Set<String> |
keySet()
Returns a Set containing the keys registered in the event's meta data. |
| Method Detail |
|---|
org.joda.time.LocalDateTime getTimestamp()
UUID getEventIdentifier()
Serializable get(String key)
key. Returns null if no such key exists, or
if the associated value is null. Use containsKey(String) to make this distinction.
key - The key to find the associated value for
boolean containsKey(String key)
key has been associated with a value (which includes
null).
key - The key to check
true if the key is associated with a value, false otherwise.Set<String> keySet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||