Spring Integration

org.springframework.integration.aggregator
Interface CorrelationStrategy

All Known Implementing Classes:
ExpressionEvaluatingCorrelationStrategy, HeaderAttributeCorrelationStrategy, MethodInvokingCorrelationStrategy

public interface CorrelationStrategy

Strategy for determining how messages can be correlated. Implementations should return the correlation key value associated with a particular message.

Author:
Marius Bogoevici, Iwein Fuld

Method Summary
 java.lang.Object getCorrelationKey(Message<?> message)
          Find the correlation key for the given message.
 

Method Detail

getCorrelationKey

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


Spring Integration