public class AdviceMessage<T> extends GenericMessage<T>
Constructor and Description |
---|
AdviceMessage(T payload,
Map<String,Object> headers,
Message<?> inputMessage) |
AdviceMessage(T payload,
Message<?> inputMessage) |
AdviceMessage(T payload,
MessageHeaders headers,
Message<?> inputMessage)
A constructor with the
MessageHeaders instance to use. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Message<?> |
getInputMessage() |
int |
hashCode() |
String |
toString() |
getHeaders, getPayload
public AdviceMessage(T payload, MessageHeaders headers, Message<?> inputMessage)
MessageHeaders
instance to use.
Note: the given MessageHeaders
instance is used
directly in the new message, i.e. it is not copied.
payload
- the message payload (never null
)headers
- message headersinputMessage
- the input message for advice.public Message<?> getInputMessage()
public String toString()
toString
in class GenericMessage<T>
public boolean equals(Object o)
equals
in class GenericMessage<T>
public int hashCode()
hashCode
in class GenericMessage<T>