|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hornetq.jms.client.HornetQMessage
org.hornetq.jms.client.HornetQObjectMessage
public class HornetQObjectMessage
HornetQ implementation of a JMS ObjectMessage.
Don't used ObjectMessage if you want good performance!
Serialization is slooooow!
Field Summary | |
---|---|
static byte |
TYPE
|
Fields inherited from class org.hornetq.jms.client.HornetQMessage |
---|
message, propertiesReadOnly, readOnly |
Fields inherited from interface javax.jms.Message |
---|
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Constructor Summary | |
---|---|
protected |
HornetQObjectMessage(ClientMessage message,
ClientSession session)
|
protected |
HornetQObjectMessage(ClientSession session)
|
|
HornetQObjectMessage(javax.jms.ObjectMessage foreign,
ClientSession session)
A copy constructor for foreign JMS ObjectMessages. |
Method Summary | |
---|---|
void |
clearBody()
|
void |
doBeforeReceive()
|
void |
doBeforeSend()
|
Serializable |
getObject()
|
byte |
getType()
|
void |
setObject(Serializable object)
|
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 |
Field Detail |
---|
public static final byte TYPE
Constructor Detail |
---|
protected HornetQObjectMessage(ClientSession session)
protected HornetQObjectMessage(ClientMessage message, ClientSession session)
public HornetQObjectMessage(javax.jms.ObjectMessage foreign, ClientSession session) throws javax.jms.JMSException
javax.jms.JMSException
Method Detail |
---|
public byte getType()
getType
in class HornetQMessage
public void doBeforeSend() throws Exception
doBeforeSend
in class HornetQMessage
Exception
public void doBeforeReceive() throws Exception
doBeforeReceive
in class HornetQMessage
Exception
public void setObject(Serializable object) throws javax.jms.JMSException
setObject
in interface javax.jms.ObjectMessage
javax.jms.JMSException
public Serializable getObject() throws javax.jms.JMSException
getObject
in interface javax.jms.ObjectMessage
javax.jms.JMSException
public void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
clearBody
in class HornetQMessage
javax.jms.JMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |