org.jboss.messaging.core.message
Interface Message

All Superinterfaces:
EncodingSupport
All Known Subinterfaces:
ClientMessage, ServerMessage
All Known Implementing Classes:
ClientMessageImpl, MessageImpl, ServerMessageImpl

public interface Message
extends EncodingSupport

A message is a routable instance that has a payload. The payload is opaque to the messaging system.

Version:
$Revision: 3341 $ $Id: Message.java 3341 2007-11-19 14:34:57Z timfox $
Author:
Ovidiu Feodorov, Tim Fox, ClebertSuconic

Field Summary
static SimpleString HDR_ACTUAL_EXPIRY_TIME
           
 
Method Summary
 boolean containsProperty(SimpleString key)
           
 void decode(MessagingBuffer buffer)
           
 void encode(MessagingBuffer buffer)
           
 int encodeSize()
           
 MessagingBuffer getBody()
           
 SimpleString getDestination()
           
 long getExpiration()
           
 byte getPriority()
           
 java.lang.Object getProperty(SimpleString key)
           
 java.util.Set<SimpleString> getPropertyNames()
           
 long getTimestamp()
           
 int getType()
           
 boolean isDurable()
           
 boolean isExpired()
           
 void putBooleanProperty(SimpleString key, boolean value)
           
 void putByteProperty(SimpleString key, byte value)
           
 void putBytesProperty(SimpleString key, byte[] value)
           
 void putDoubleProperty(SimpleString key, double value)
           
 void putFloatProperty(SimpleString key, float value)
           
 void putIntProperty(SimpleString key, int value)
           
 void putLongProperty(SimpleString key, long value)
           
 void putShortProperty(SimpleString key, short value)
           
 void putStringProperty(SimpleString key, SimpleString value)
           
 java.lang.Object removeProperty(SimpleString key)
           
 void setBody(MessagingBuffer body)
           
 void setDestination(SimpleString destination)
           
 void setDurable(boolean durable)
           
 void setExpiration(long expiration)
           
 void setPriority(byte priority)
           
 void setTimestamp(long timestamp)
           
 

Field Detail

HDR_ACTUAL_EXPIRY_TIME

static final SimpleString HDR_ACTUAL_EXPIRY_TIME
Method Detail

getDestination

SimpleString getDestination()

setDestination

void setDestination(SimpleString destination)

getType

int getType()

isDurable

boolean isDurable()

setDurable

void setDurable(boolean durable)

getExpiration

long getExpiration()

isExpired

boolean isExpired()

setExpiration

void setExpiration(long expiration)

getTimestamp

long getTimestamp()

setTimestamp

void setTimestamp(long timestamp)

getPriority

byte getPriority()

setPriority

void setPriority(byte priority)

encodeSize

int encodeSize()
Specified by:
encodeSize in interface EncodingSupport

encode

void encode(MessagingBuffer buffer)
Specified by:
encode in interface EncodingSupport

decode

void decode(MessagingBuffer buffer)
Specified by:
decode in interface EncodingSupport

putBooleanProperty

void putBooleanProperty(SimpleString key,
                        boolean value)

putByteProperty

void putByteProperty(SimpleString key,
                     byte value)

putBytesProperty

void putBytesProperty(SimpleString key,
                      byte[] value)

putShortProperty

void putShortProperty(SimpleString key,
                      short value)

putIntProperty

void putIntProperty(SimpleString key,
                    int value)

putLongProperty

void putLongProperty(SimpleString key,
                     long value)

putFloatProperty

void putFloatProperty(SimpleString key,
                      float value)

putDoubleProperty

void putDoubleProperty(SimpleString key,
                       double value)

putStringProperty

void putStringProperty(SimpleString key,
                       SimpleString value)

getProperty

java.lang.Object getProperty(SimpleString key)

removeProperty

java.lang.Object removeProperty(SimpleString key)

containsProperty

boolean containsProperty(SimpleString key)

getPropertyNames

java.util.Set<SimpleString> getPropertyNames()

getBody

MessagingBuffer getBody()

setBody

void setBody(MessagingBuffer body)


Copyright © 2006 JBoss Inc. All Rights Reserved.