org.jboss.messaging.core.message.impl
Class MessageImpl
java.lang.Object
org.jboss.messaging.core.message.impl.MessageImpl
- All Implemented Interfaces:
- EncodingSupport, Message
- Direct Known Subclasses:
- ClientMessageImpl, ServerMessageImpl
public abstract class MessageImpl
- extends java.lang.Object
- implements Message
A concrete implementation of a message
All messages handled by JBM core are of this type
- Version:
- $Revision: 2740 $
For normal message transportation serialization is not used
$Id: MessageSupport.java 2740 2007-05-30 11:36:28Z timfox $
- Author:
- Ovidiu Feodorov, Tim Fox, Clebert Suconic
Field Summary |
protected boolean |
durable
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
durable
protected boolean durable
MessageImpl
protected MessageImpl()
MessageImpl
protected MessageImpl(int type,
boolean durable,
long expiration,
long timestamp,
byte priority)
MessageImpl
protected MessageImpl(MessageImpl other)
encode
public void encode(MessagingBuffer buff)
- Specified by:
encode
in interface EncodingSupport
- Specified by:
encode
in interface Message
encodeSize
public int encodeSize()
- Specified by:
encodeSize
in interface EncodingSupport
- Specified by:
encodeSize
in interface Message
decode
public void decode(MessagingBuffer buffer)
- Specified by:
decode
in interface EncodingSupport
- Specified by:
decode
in interface Message
getDestination
public SimpleString getDestination()
- Specified by:
getDestination
in interface Message
setDestination
public void setDestination(SimpleString destination)
- Specified by:
setDestination
in interface Message
getType
public int getType()
- Specified by:
getType
in interface Message
isDurable
public boolean isDurable()
- Specified by:
isDurable
in interface Message
setDurable
public void setDurable(boolean durable)
- Specified by:
setDurable
in interface Message
getExpiration
public long getExpiration()
- Specified by:
getExpiration
in interface Message
setExpiration
public void setExpiration(long expiration)
- Specified by:
setExpiration
in interface Message
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp
in interface Message
setTimestamp
public void setTimestamp(long timestamp)
- Specified by:
setTimestamp
in interface Message
getPriority
public byte getPriority()
- Specified by:
getPriority
in interface Message
setPriority
public void setPriority(byte priority)
- Specified by:
setPriority
in interface Message
isExpired
public boolean isExpired()
- Specified by:
isExpired
in interface Message
putBooleanProperty
public void putBooleanProperty(SimpleString key,
boolean value)
- Specified by:
putBooleanProperty
in interface Message
putByteProperty
public void putByteProperty(SimpleString key,
byte value)
- Specified by:
putByteProperty
in interface Message
putBytesProperty
public void putBytesProperty(SimpleString key,
byte[] value)
- Specified by:
putBytesProperty
in interface Message
putShortProperty
public void putShortProperty(SimpleString key,
short value)
- Specified by:
putShortProperty
in interface Message
putIntProperty
public void putIntProperty(SimpleString key,
int value)
- Specified by:
putIntProperty
in interface Message
putLongProperty
public void putLongProperty(SimpleString key,
long value)
- Specified by:
putLongProperty
in interface Message
putFloatProperty
public void putFloatProperty(SimpleString key,
float value)
- Specified by:
putFloatProperty
in interface Message
putDoubleProperty
public void putDoubleProperty(SimpleString key,
double value)
- Specified by:
putDoubleProperty
in interface Message
putStringProperty
public void putStringProperty(SimpleString key,
SimpleString value)
- Specified by:
putStringProperty
in interface Message
getProperty
public java.lang.Object getProperty(SimpleString key)
- Specified by:
getProperty
in interface Message
removeProperty
public java.lang.Object removeProperty(SimpleString key)
- Specified by:
removeProperty
in interface Message
containsProperty
public boolean containsProperty(SimpleString key)
- Specified by:
containsProperty
in interface Message
getPropertyNames
public java.util.Set<SimpleString> getPropertyNames()
- Specified by:
getPropertyNames
in interface Message
getBody
public MessagingBuffer getBody()
- Specified by:
getBody
in interface Message
setBody
public void setBody(MessagingBuffer body)
- Specified by:
setBody
in interface Message
Copyright © 2006 JBoss Inc. All Rights Reserved.