|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.domain.MutableEventMetaData
public class MutableEventMetaData
Implementation of EventMetaData that allows values to be set, as well as read.
| Constructor Summary | |
|---|---|
MutableEventMetaData(org.joda.time.LocalDateTime timestamp,
UUID eventIdentifier)
Create a meta-data instance with the given timestamp and eventIdentifier as initial
values. |
|
| 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. |
void |
put(String key,
Serializable value)
Put a key-value pair in the meta data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MutableEventMetaData(org.joda.time.LocalDateTime timestamp,
UUID eventIdentifier)
timestamp and eventIdentifier as initial
values.
timestamp - The timestamp of the creation of the eventeventIdentifier - The identifier of the event| Method Detail |
|---|
public void put(String key,
Serializable value)
key - The key for which to insert a valuevalue - The value to insertpublic org.joda.time.LocalDateTime getTimestamp()
EventMetaData
getTimestamp in interface EventMetaDatapublic UUID getEventIdentifier()
EventMetaData
getEventIdentifier in interface EventMetaDatapublic Serializable get(String key)
EventMetaDatakey. Returns null if no such key exists, or
if the associated value is null. Use EventMetaData.containsKey(String) to make this distinction.
get in interface EventMetaDatakey - The key to find the associated value for
public boolean containsKey(String key)
EventMetaDatakey has been associated with a value (which includes
null).
containsKey in interface EventMetaDatakey - The key to check
true if the key is associated with a value, false otherwise.public Set<String> keySet()
EventMetaData
keySet in interface EventMetaData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||