com.rabbitmq.client
Class GetResponse

java.lang.Object
  extended by com.rabbitmq.client.GetResponse

public class GetResponse
extends java.lang.Object

Encapsulates the response from a Channel.basicGet(int, java.lang.String, boolean) message-retrieval method call - essentially a static bean "holder" with message response data.


Constructor Summary
GetResponse(Envelope envelope, AMQP.BasicProperties props, byte[] body, int messageCount)
          Construct a GetResponse with the specified construction parameters
 
Method Summary
 byte[] getBody()
          Get the message body included in this response
 Envelope getEnvelope()
          Get the Envelope included in this response
 int getMessageCount()
          Get the message count included in this response
 AMQP.BasicProperties getProps()
          Get the AMQP.BasicProperties included in this response
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetResponse

public GetResponse(Envelope envelope,
                   AMQP.BasicProperties props,
                   byte[] body,
                   int messageCount)
Construct a GetResponse with the specified construction parameters

Parameters:
envelope - the Envelope
props - message properties
body - the message body
messageCount - the number of messages in the response
Method Detail

getEnvelope

public Envelope getEnvelope()
Get the Envelope included in this response

Returns:
the envelope

getProps

public AMQP.BasicProperties getProps()
Get the AMQP.BasicProperties included in this response

Returns:
the properties

getBody

public byte[] getBody()
Get the message body included in this response

Returns:
the message body

getMessageCount

public int getMessageCount()
Get the message count included in this response

Returns:
the message count