org.springframework.amqp.core
Class Message
java.lang.Object
org.springframework.amqp.core.Message
public class Message
- extends 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
Message
public Message(byte[] body,
MessageProperties messageProperties)
getBody
public byte[] getBody()
getMessageProperties
public MessageProperties getMessageProperties()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011. All Rights Reserved.