Interface CorrelationInfo


@NoImplement @MinMuleVersion("4.5.0") public interface CorrelationInfo
Provides message correlation information. Operations and source callbacks (such as methods annotated with OnSuccess or @OnError) can obtain an instance in order to obtain information regarding how the message being processed correlates to its context.
Since:
1.0
  • Method Details

    • getEventId

      String getEventId()
      Returns:
      The id of the Event being processed
    • isOutboundCorrelationEnabled

      boolean isOutboundCorrelationEnabled()
      Indicates if outbound correlation ids are enabled at the application level or not. If false, outbound operations should not send correlation id, unless that operation has an explicit override.
      Returns:
      whether outbound correlation ids is enabled by default or not
    • getCorrelationId

      String getCorrelationId()
      Returns:
      The correlation id of the Event currently being processed
    • getItemSequenceInfo

      Optional<org.mule.runtime.api.message.ItemSequenceInfo> getItemSequenceInfo()
      Returns:
      The item sequence information of the Event currently being processed