站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 messaging API Documentation 英文版文档

SpyObjectMessage (JBoss Messaging API) - JBoss 4.0.1 sp1 messaging API Documentation 英文版文档


org.jboss.mq
Class SpyObjectMessage

java.lang.Object
  extended byorg.jboss.mq.SpyMessage
      extended byorg.jboss.mq.SpyObjectMessage
All Implemented Interfaces:
Cloneable, Comparable, Externalizable, javax.jms.Message, javax.jms.ObjectMessage, Serializable
Direct Known Subclasses:
SpyEncapsulatedMessage

public class SpyObjectMessage
extends SpyMessage
implements javax.jms.ObjectMessage, Externalizable

This class implements javax.jms.ObjectMessage

Version:
$Revision: 1.17 $
Author:
Norbert Lataille (Norbert.Lataille@m4x.org), Adrian Brock
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jboss.mq.SpyMessage
SpyMessage.Header
 
Field Summary
 
Fields inherited from class org.jboss.mq.SpyMessage
ack, BOOLEAN, BYTE, BYTES_MESS, DOUBLE, ENCAP_MESS, FLOAT, header, INT, LONG, MAP_MESS, NULL, OBJECT, OBJECT_MESS, PROPERTY_REDELIVERY_COUNT, PROPERTY_REDELIVERY_DELAY, PROPERTY_REDELIVERY_LIMIT, PROPERTY_SCHEDULED_DELIVERY, session, SHORT, SPY_MESS, STREAM_MESS, STRING, TEXT_MESS
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
SpyObjectMessage()
           
 
Method Summary
 void clearBody()
          Clear the message body
 Serializable getObject()
           
 SpyMessage myClone()
          Clone the message
 void readExternal(ObjectInput in)
           
 void setObject(Serializable object)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.jboss.mq.SpyMessage
acknowledge, clearProperties, compareTo, copyProps, createAcknowledgementRequest, doAcknowledge, doNegAcknowledge, getAcknowledgementRequest, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isOutdated, propertyExists, readMessage, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setReadOnlyMode, setShortProperty, setStringProperty, toString, writeMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Message
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
 

Constructor Detail

SpyObjectMessage

public SpyObjectMessage()
Method Detail

setObject

public void setObject(Serializable object)
               throws javax.jms.JMSException
Specified by:
setObject in interface javax.jms.ObjectMessage
Throws:
javax.jms.JMSException

getObject

public Serializable getObject()
                       throws javax.jms.JMSException
Specified by:
getObject in interface javax.jms.ObjectMessage
Throws:
javax.jms.JMSException

clearBody

public void clearBody()
               throws javax.jms.JMSException
Description copied from class: SpyMessage
Clear the message body

Specified by:
clearBody in interface javax.jms.Message
Overrides:
clearBody in class SpyMessage
Throws:
javax.jms.JMSException - for any error

myClone

public SpyMessage myClone()
                   throws javax.jms.JMSException
Description copied from class: SpyMessage
Clone the message

Overrides:
myClone in class SpyMessage
Returns:
the cloned message
Throws:
javax.jms.JMSException - for any error

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class SpyMessage
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class SpyMessage
Throws:
IOException
ClassNotFoundException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.