Spring AMQP

org.springframework.amqp.core
Class Message

java.lang.Object
  extended by 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

Constructor Summary
Message(byte[] body, MessageProperties messageProperties)
           
 
Method Summary
 byte[] getBody()
           
 MessageProperties getMessageProperties()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Message

public Message(byte[] body,
               MessageProperties messageProperties)
Method Detail

getBody

public byte[] getBody()

getMessageProperties

public MessageProperties getMessageProperties()

toString

public String toString()
Overrides:
toString in class Object

Spring AMQP

Copyright © 2011. All Rights Reserved.