Spring Integration

org.springframework.integration.aggregator
Class HeaderAttributeCorrelationStrategy

java.lang.Object
  extended by org.springframework.integration.aggregator.HeaderAttributeCorrelationStrategy
All Implemented Interfaces:
CorrelationStrategy

public class HeaderAttributeCorrelationStrategy
extends java.lang.Object
implements CorrelationStrategy

Default implementation of CorrelationStrategy. Uses a header attribute to determine the correlation key value.

Author:
Marius Bogoevici

Constructor Summary
HeaderAttributeCorrelationStrategy(java.lang.String attributeName)
           
 
Method Summary
 java.lang.Object getCorrelationKey(Message<?> message)
          Find the correlation key for the given message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderAttributeCorrelationStrategy

public HeaderAttributeCorrelationStrategy(java.lang.String attributeName)
Method Detail

getCorrelationKey

public java.lang.Object getCorrelationKey(Message<?> message)
Description copied from interface: CorrelationStrategy
Find the correlation key for the given message. If no key can be determined the strategy should not return null, but throw an exception.

Specified by:
getCorrelationKey in interface CorrelationStrategy

Spring Integration