|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.correlation.CorrelationDataHolder
public final class CorrelationDataHolder
DataHolder for meta data entries that need to be attached to messages being generated by this thread. Infrastructure components that send messages to a CommandBus or an EventBus should check this data holder for correlation data to attach to these messages.
EventTemplate
,
DefaultCommandGateway
,
GatewayProxyFactory
,
CorrelationDataProvider
Method Summary | |
---|---|
static void |
clear()
Clears the correlation data from the current thread. |
static Map<String,?> |
getCorrelationData()
Returns the correlation data attached to the current thread. |
static void |
setCorrelationData(Map<String,?> data)
Attaches the given data as correlation data to the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Map<String,?> getCorrelationData()
public static void setCorrelationData(Map<String,?> data)
data
as correlation data to the current thread. Any data already attached is
replaced with given data
.
Note that you should call clear()
to remove attached values when exiting the execution scope in which
the correlation data is value. Failure to do so may result in memory leaks or faulty correlation data on
messages.
data
- the correlation data to attach to the current threadpublic static void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |