org.soyatec.windowsazure.queue
Interface IMessage


public interface IMessage

Objects of this class represent a single message in the queue.


Field Summary
static int MaxMessageSize
          The maximum message size in bytes.
static int MaxTimeToLive
          The maximum amount of time a message is kept in the queue.
 
Method Summary
 byte[] getContentAsBytes()
          Returns the content of the message as a byte array
 java.lang.String getContentAsString()
          Returns the the contents of the message as a string.
 java.sql.Timestamp getExpirationTime()
          Returns the message's expiration time.
 java.lang.String getId()
          Returns the unique ID of the message.
 java.sql.Timestamp getInsertTime()
          Returns the point in time when the message was put into the queue.
 java.sql.Timestamp getNextVisibleTime()
          Return the point in time when a message becomes visible again after a Get() operation was called that returned the message.
 java.lang.String getPopReceipt()
          Return popReceipt which is used when deleting a message from the queue.
 

Field Detail

MaxMessageSize

static final int MaxMessageSize
The maximum message size in bytes.

See Also:
Constant Field Values

MaxTimeToLive

static final int MaxTimeToLive
The maximum amount of time a message is kept in the queue. Max value is 7 days. Value is given in seconds.

See Also:
Constant Field Values
Method Detail

getContentAsString

java.lang.String getContentAsString()
Returns the the contents of the message as a string.

Returns:

getContentAsBytes

byte[] getContentAsBytes()
Returns the content of the message as a byte array


getId

java.lang.String getId()
Returns the unique ID of the message.

Returns:
The unique ID of the message

getPopReceipt

java.lang.String getPopReceipt()
Return popReceipt which is used when deleting a message from the queue.

Returns:
PopReceipt

getInsertTime

java.sql.Timestamp getInsertTime()
Returns the point in time when the message was put into the queue.

Returns:
The point in time when the message was put into the queue.

getExpirationTime

java.sql.Timestamp getExpirationTime()
Returns the message's expiration time.

Returns:
The message's expiration time.

getNextVisibleTime

java.sql.Timestamp getNextVisibleTime()
Return the point in time when a message becomes visible again after a Get() operation was called that returned the message.

Returns:
The point in time when a message becomes visible again after a Get() operation was called that returned the message.