org.springframework.amqp.core
Class Message
java.lang.Object
org.springframework.amqp.core.Message
public class Message
- extends java.lang.Object
The 0-8 and 0-9-1 AMQP specifications do not define an Message class or interface. Instead, when performing an
operation such as basicPublish the content is passed as a byte-array argument and additional properties are passed in
as separate arguments. Spring AMQP defines a Message class as part of a more general AMQP domain model
representation. The purpose of the Message class is to simply encapsulate the body and properties within a single
instance so that the rest of the AMQP API can in turn be simpler.
- Author:
- Mark Pollack, Mark Fisher, Oleg Zhurakousky, Dave Syer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Message
public Message(byte[] body,
MessageProperties messageProperties)
getBody
public byte[] getBody()
getMessageProperties
public MessageProperties getMessageProperties()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object