Class StreamMessageImpl
- java.lang.Object
-
- net.timewalker.ffmq4.common.message.AbstractMessage
-
- net.timewalker.ffmq4.common.message.StreamMessageImpl
-
- All Implemented Interfaces:
javax.jms.Message,javax.jms.StreamMessage
public final class StreamMessageImpl extends AbstractMessage implements javax.jms.StreamMessage
Implementation of a
StreamMessage
-
-
Field Summary
-
Fields inherited from class net.timewalker.ffmq4.common.message.AbstractMessage
bodyIsReadOnly
-
-
Constructor Summary
Constructors Constructor Description StreamMessageImpl()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearBody()AbstractMessagecopy()Create an independant copy of this messageprotected bytegetType()Get the type value for this messageObjectinternalReadObject()booleanreadBoolean()bytereadByte()intreadBytes(byte[] value)charreadChar()doublereadDouble()floatreadFloat()intreadInt()longreadLong()ObjectreadObject()shortreadShort()StringreadString()voidreset()protected voidserializeBodyTo(RawDataBuffer out)protected voidunserializeBodyFrom(RawDataBuffer in)voidwriteBoolean(boolean value)voidwriteByte(byte value)voidwriteBytes(byte[] value)voidwriteBytes(byte[] value, int offset, int length)voidwriteChar(char value)voidwriteDouble(double value)voidwriteFloat(float value)voidwriteInt(int value)voidwriteLong(long value)voidwriteObject(Object value)voidwriteShort(short value)voidwriteString(String value)-
Methods inherited from class net.timewalker.ffmq4.common.message.AbstractMessage
acknowledge, assertDeserializationLevel, clearProperties, copyCommonFields, ensureDeserializationLevel, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getRawMessage, getSession, getShortProperty, getStringProperty, initializeFromRaw, isInternalCopy, markAsReadOnly, propertyExists, readMapFrom, serializeTo, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setInternalCopy, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setSession, setShortProperty, setStringProperty, toString, writeMapTo
-
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
-
-
-
-
Method Detail
-
getType
protected byte getType()
Description copied from class:AbstractMessageGet the type value for this message- Specified by:
getTypein classAbstractMessage
-
unserializeBodyFrom
protected void unserializeBodyFrom(RawDataBuffer in)
- Specified by:
unserializeBodyFromin classAbstractMessage
-
serializeBodyTo
protected final void serializeBodyTo(RawDataBuffer out)
- Specified by:
serializeBodyToin classAbstractMessage
-
readBoolean
public boolean readBoolean() throws javax.jms.JMSException- Specified by:
readBooleanin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
readByte
public byte readByte() throws javax.jms.JMSException- Specified by:
readBytein interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
readBytes
public int readBytes(byte[] value) throws javax.jms.JMSException- Specified by:
readBytesin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
readChar
public char readChar() throws javax.jms.JMSException- Specified by:
readCharin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
readDouble
public double readDouble() throws javax.jms.JMSException- Specified by:
readDoublein interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
readFloat
public float readFloat() throws javax.jms.JMSException- Specified by:
readFloatin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
readInt
public int readInt() throws javax.jms.JMSException- Specified by:
readIntin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
readLong
public long readLong() throws javax.jms.JMSException- Specified by:
readLongin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
readObject
public Object readObject() throws javax.jms.JMSException
- Specified by:
readObjectin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
internalReadObject
public Object internalReadObject() throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
readShort
public short readShort() throws javax.jms.JMSException- Specified by:
readShortin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
readString
public String readString() throws javax.jms.JMSException
- Specified by:
readStringin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
reset
public void reset()
- Specified by:
resetin interfacejavax.jms.StreamMessage
-
writeBoolean
public void writeBoolean(boolean value) throws javax.jms.JMSException- Specified by:
writeBooleanin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
writeByte
public void writeByte(byte value) throws javax.jms.JMSException- Specified by:
writeBytein interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
writeBytes
public void writeBytes(byte[] value) throws javax.jms.JMSException- Specified by:
writeBytesin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
writeBytes
public void writeBytes(byte[] value, int offset, int length) throws javax.jms.JMSException- Specified by:
writeBytesin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
writeChar
public void writeChar(char value) throws javax.jms.JMSException- Specified by:
writeCharin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
writeDouble
public void writeDouble(double value) throws javax.jms.JMSException- Specified by:
writeDoublein interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
writeFloat
public void writeFloat(float value) throws javax.jms.JMSException- Specified by:
writeFloatin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
writeInt
public void writeInt(int value) throws javax.jms.JMSException- Specified by:
writeIntin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
writeLong
public void writeLong(long value) throws javax.jms.JMSException- Specified by:
writeLongin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
writeObject
public void writeObject(Object value) throws javax.jms.JMSException
- Specified by:
writeObjectin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
writeShort
public void writeShort(short value) throws javax.jms.JMSException- Specified by:
writeShortin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
writeString
public void writeString(String value) throws javax.jms.JMSException
- Specified by:
writeStringin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException
-
clearBody
public void clearBody()
- Specified by:
clearBodyin interfacejavax.jms.Message
-
copy
public AbstractMessage copy()
Description copied from class:AbstractMessageCreate an independant copy of this message- Specified by:
copyin classAbstractMessage
-
-