|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.domain.MetaData
public class MetaData
Represents MetaData that is passed along with a payload in a Message. Typically, the MetaData contains information about the message payload that isn't "domain-specific". Examples are originating IP-address or executing User ID.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
MetaData(Map<String,?> items)
Initializes a MetaData instance with the given items as content. |
|
| Method Summary | |
|---|---|
void |
clear()
This operation is not supported. |
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
static MetaData |
emptyInstance()
Returns an empty MetaData instance. |
Set<Map.Entry<String,Object>> |
entrySet()
|
boolean |
equals(Object o)
|
static MetaData |
from(Map<String,?> metaDataEntries)
Creates a new MetaData instance from the given metaDataEntries. |
Object |
get(Object key)
|
int |
hashCode()
|
boolean |
isEmpty()
|
Set<String> |
keySet()
|
MetaData |
mergedWith(Map<String,?> additionalEntries)
Returns a MetaData instance containing values of this, combined with the given
additionalEntries. |
Object |
put(String key,
Object value)
This operation is not supported. |
void |
putAll(Map<? extends String,?> m)
This operation is not supported. |
protected Object |
readResolve()
Java Serialization specification method that will ensure that deserialization will maintain a single instance of empty MetaData. |
Object |
remove(Object key)
This operation is not supported. |
int |
size()
|
Collection<Object> |
values()
|
MetaData |
withoutKeys(Set<String> keys)
Returns a MetaData instance with the items with given keys removed. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaData(Map<String,?> items)
items as content. Note that the items are copied
into the MetaData. Modifications in the Map of items will not reflect is the MetaData, or vice versa.
Modifications in the items themselves are reflected in the MetaData.
items - the items to populate the MetaData with| Method Detail |
|---|
public static MetaData emptyInstance()
public static MetaData from(Map<String,?> metaDataEntries)
metaDataEntries. If metaDataEntries is
already a MetaData instance, it is returned as is. This makes this method more suitable than the MetaData(java.util.Map) copy-constructor.
metaDataEntries - the items to populate the MetaData with
metaDataEntries as contentpublic Object get(Object key)
get in interface Map<String,Object>
public Object put(String key,
Object value)
put in interface Map<String,Object>public Object remove(Object key)
remove in interface Map<String,Object>public void putAll(Map<? extends String,?> m)
putAll in interface Map<String,Object>public void clear()
clear in interface Map<String,Object>public boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>public Set<String> keySet()
keySet in interface Map<String,Object>public Collection<Object> values()
values in interface Map<String,Object>public Set<Map.Entry<String,Object>> entrySet()
entrySet in interface Map<String,Object>public int size()
size in interface Map<String,Object>public boolean isEmpty()
isEmpty in interface Map<String,Object>public boolean equals(Object o)
equals in interface Map<String,Object>equals in class Objectpublic int hashCode()
hashCode in interface Map<String,Object>hashCode in class Objectpublic MetaData mergedWith(Map<String,?> additionalEntries)
this, combined with the given
additionalEntries. If any entries have identical keys, the values from the
additionalEntries will take precedence.
additionalEntries - The additional entries for the new MetaData
this, combined with the given
additionalEntriespublic MetaData withoutKeys(Set<String> keys)
keys removed. Keys for which there is no
assigned value are ignored.
keys - The keys of the entries to remove
keysprotected Object readResolve()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||