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
HDR_ACTUAL_EXPIRY_TIME
static final SimpleString HDR_ACTUAL_EXPIRY_TIME
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.