Class AdviceMessage<T>

java.lang.Object
org.springframework.messaging.support.GenericMessage<T>
org.springframework.integration.message.AdviceMessage<T>
Type Parameters:
T - the payload type.
All Implemented Interfaces:
Serializable, Message<T>

public class AdviceMessage<T> extends GenericMessage<T>
A message implementation that is produced by an advice after successful message handling. Contains the result of the expression evaluation in the payload and the original message that the advice passed to the handler.
Since:
2.2
Author:
Gary Russell, Artem Bilan
See Also:
  • Constructor Details

    • AdviceMessage

      public AdviceMessage(T payload, Message<?> inputMessage)
    • AdviceMessage

      public AdviceMessage(T payload, Map<String,Object> headers, Message<?> inputMessage)
    • AdviceMessage

      public AdviceMessage(T payload, MessageHeaders headers, Message<?> inputMessage)
      A constructor with the MessageHeaders instance to use.

      Note: the given MessageHeaders instance is used directly in the new message, i.e. it is not copied.

      Parameters:
      payload - the message payload (never null)
      headers - message headers
      inputMessage - the input message for advice.
      Since:
      4.3.10
  • Method Details