org.jboss.jms.message
Class JBossObjectMessage

java.lang.Object
  extended by org.jboss.messaging.core.impl.message.MessageSupport
      extended by org.jboss.jms.message.JBossMessage
          extended by org.jboss.jms.message.JBossObjectMessage
All Implemented Interfaces:
java.io.Serializable, Message, Streamable

public class JBossObjectMessage
extends JBossMessage

This class implements javax.jms.ObjectMessage

Version:
$Revision: 3190 $ $Id: JBossObjectMessage.java 3190 2007-10-15 13:03:24Z timfox $
Author:
Tim Fox, Ovidiu Feodorov
See Also:
Serialized Form

Field Summary
static byte TYPE
           
 
Fields inherited from class org.jboss.jms.message.JBossMessage
connectionID, JBOSS_MESSAGING_ACTUAL_EXPIRY_TIME, JBOSS_MESSAGING_BRIDGE_MESSAGE_ID_LIST, JBOSS_MESSAGING_ORIG_DESTINATION, JBOSS_MESSAGING_ORIG_MESSAGE_ID, JMS_JBOSS_SCHEDULED_DELIVERY_PROP_NAME, jmsMessageID
 
Fields inherited from class org.jboss.messaging.core.impl.message.MessageSupport
expiration, headers, messageID, payload, payloadAsByteArray, priority, reliable, timestamp
 
Fields inherited from interface org.jboss.messaging.core.contract.Message
CLUSTER_SUCKED
 
Constructor Summary
JBossObjectMessage()
          Only deserialization should use this constructor directory
JBossObjectMessage(JBossObjectMessage other)
          Make a shallow copy of another JBossObjectMessage
JBossObjectMessage(long messageID)
           
JBossObjectMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, java.util.Map coreHeaders, byte[] payloadAsByteArray)
           
JBossObjectMessage(ObjectMessage foreign, long id)
          A copy constructor for non-JBoss Messaging JMS ObjectMessages.
 
Method Summary
 JBossMessage doCopy()
           
 java.io.Serializable getObject()
           
 byte getType()
           
 void setObject(java.io.Serializable object)
           
 
Methods inherited from class org.jboss.jms.message.JBossMessage
acknowledge, clearBody, clearProperties, copyPayload, createThinDelegate, doBeforeReceive, doBeforeSend, dump, getBooleanProperty, getByteProperty, getConnectionID, getDoubleProperty, getFloatProperty, getHeaders, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSProperties, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getScheduledDeliveryTime, getShortProperty, getStringProperty, isCorrelationIDBytes, isReference, propertyExists, read, setBooleanProperty, setByteProperty, setConnectionID, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setMessageId, setObjectProperty, setShortProperty, setStringProperty, toString, write
 
Methods inherited from class org.jboss.messaging.core.impl.message.MessageSupport
containsHeader, createReference, equals, getExpiration, getHeader, getMessageID, getPayload, getPayloadAsByteArray, getPriority, getTimestamp, hashCode, isExpired, isPersisted, isReliable, putHeader, removeHeader, setExpiration, setPayload, setPersisted, setPriority
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final byte TYPE
See Also:
Constant Field Values
Constructor Detail

JBossObjectMessage

public JBossObjectMessage()
Only deserialization should use this constructor directory


JBossObjectMessage

public JBossObjectMessage(long messageID)

JBossObjectMessage

public JBossObjectMessage(long messageID,
                          boolean reliable,
                          long expiration,
                          long timestamp,
                          byte priority,
                          java.util.Map coreHeaders,
                          byte[] payloadAsByteArray)

JBossObjectMessage

public JBossObjectMessage(JBossObjectMessage other)
Make a shallow copy of another JBossObjectMessage

Parameters:
other -

JBossObjectMessage

public JBossObjectMessage(ObjectMessage foreign,
                          long id)
                   throws JMSException
A copy constructor for non-JBoss Messaging JMS ObjectMessages.

Throws:
JMSException
Method Detail

getType

public byte getType()
Specified by:
getType in interface Message
Overrides:
getType in class JBossMessage
Returns:
the type of the message

setObject

public void setObject(java.io.Serializable object)
               throws JMSException
Throws:
JMSException

getObject

public java.io.Serializable getObject()
                               throws JMSException
Throws:
JMSException

doCopy

public JBossMessage doCopy()
Overrides:
doCopy in class JBossMessage


Copyright © 2006 JBoss Inc. All Rights Reserved.