Interface CorrelationDataProvider
- All Known Implementing Classes:
MessageOriginProvider,MultiCorrelationDataProvider,SimpleCorrelationDataProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Object defining the data from a
Message that should be attached as correlation data to Messages
generated as result of the processing of the given message.- Since:
- 2.3.0
- Author:
- Allard Buijze
-
Method Summary
Modifier and TypeMethodDescriptioncorrelationDataFor(Message message) Provides a map with the entries to attach as correlation data to generated messages while processing givenmessage.
-
Method Details
-
correlationDataFor
Provides a map with the entries to attach as correlation data to generated messages while processing givenmessage. This method should not returnnull. Any exception thrown from this method might interfere with rolling back a transaction. Therefore, by default exceptions are caught, ignoring the correlation data that should have been added.- Parameters:
message- The message to define correlation data for.- Returns:
- The data to attach as correlation data to generated messages.
-