Class HeaderAttributeCorrelationStrategy
java.lang.Object
org.springframework.integration.aggregator.HeaderAttributeCorrelationStrategy
- All Implemented Interfaces:
CorrelationStrategy
public class HeaderAttributeCorrelationStrategy extends Object implements CorrelationStrategy
Default implementation of
CorrelationStrategy. Uses a header
attribute to determine the correlation key value.- Author:
- Marius Bogoevici
-
Constructor Summary
Constructors Constructor Description HeaderAttributeCorrelationStrategy(String attributeName) -
Method Summary
Modifier and Type Method Description ObjectgetCorrelationKey(Message<?> message)Find the correlation key for the given message.
-
Constructor Details
-
Method Details
-
getCorrelationKey
Description copied from interface:CorrelationStrategyFind the correlation key for the given message. If no key can be determined the strategy should not returnnull, but throw an exception.- Specified by:
getCorrelationKeyin interfaceCorrelationStrategy- Parameters:
message- The message.- Returns:
- The correlation key.
-