public class SimpleCorrelationDataProvider extends Object implements CorrelationDataProvider
Constructor and Description |
---|
SimpleCorrelationDataProvider(String... metaDataKeys)
Initializes the CorrelationDataProvider to return the meta data of messages with given
metaDataKeys
as correlation data. |
Modifier and Type | Method and Description |
---|---|
Map<String,?> |
correlationDataFor(Message<?> message)
Provides a map with the entries to attach as correlation data to generated messages while processing given
message . |
public SimpleCorrelationDataProvider(String... metaDataKeys)
metaDataKeys
as correlation data.metaDataKeys
- The keys of the meta data entries from messages to return as correlation datapublic Map<String,?> correlationDataFor(Message<?> message)
CorrelationDataProvider
message
.
This method should not return null
.correlationDataFor
in interface CorrelationDataProvider
message
- The message to define correlation data forCopyright © 2010–2019. All rights reserved.