public final class CorrelationDataHolder extends Object
EventTemplate
,
DefaultCommandGateway
,
GatewayProxyFactory
,
CorrelationDataProvider
Modifier and Type | Method and Description |
---|---|
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. |
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()
Copyright © 2010-2014. All Rights Reserved.