Package org.apache.activemq.artemis.ra
Class ActiveMQRAStreamMessage
- java.lang.Object
-
- org.apache.activemq.artemis.ra.ActiveMQRAMessage
-
- org.apache.activemq.artemis.ra.ActiveMQRAStreamMessage
-
- All Implemented Interfaces:
javax.jms.Message,javax.jms.StreamMessage
public class ActiveMQRAStreamMessage extends ActiveMQRAMessage implements javax.jms.StreamMessage
A wrapper for a message
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.ra.ActiveMQRAMessage
message, session
-
-
Constructor Summary
Constructors Constructor Description ActiveMQRAStreamMessage(javax.jms.StreamMessage message, ActiveMQRASession session)Create a new wrapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanreadBoolean()ReadbytereadByte()ReadintreadBytes(byte[] value)ReadcharreadChar()ReaddoublereadDouble()ReadfloatreadFloat()ReadintreadInt()ReadlongreadLong()ReadObjectreadObject()ReadshortreadShort()ReadStringreadString()Readvoidreset()ResetvoidwriteBoolean(boolean value)WritevoidwriteByte(byte value)WritevoidwriteBytes(byte[] value)WritevoidwriteBytes(byte[] value, int offset, int length)WritevoidwriteChar(char value)WritevoidwriteDouble(double value)WritevoidwriteFloat(float value)WritevoidwriteInt(int value)WritevoidwriteLong(long value)WritevoidwriteObject(Object value)WritevoidwriteShort(short value)WritevoidwriteString(String value)Write-
Methods inherited from class org.apache.activemq.artemis.ra.ActiveMQRAMessage
acknowledge, clearBody, clearProperties, equals, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, isBodyAssignableTo, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.jms.Message
acknowledge, clearBody, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isBodyAssignableTo, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
-
-
-
-
Constructor Detail
-
ActiveMQRAStreamMessage
public ActiveMQRAStreamMessage(javax.jms.StreamMessage message, ActiveMQRASession session)Create a new wrapper- Parameters:
message- the messagesession- the session
-
-
Method Detail
-
readBoolean
public boolean readBoolean() throws javax.jms.JMSExceptionRead- Specified by:
readBooleanin interfacejavax.jms.StreamMessage- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
readByte
public byte readByte() throws javax.jms.JMSExceptionRead- Specified by:
readBytein interfacejavax.jms.StreamMessage- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
readBytes
public int readBytes(byte[] value) throws javax.jms.JMSExceptionRead- Specified by:
readBytesin interfacejavax.jms.StreamMessage- Parameters:
value- The value- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
readChar
public char readChar() throws javax.jms.JMSExceptionRead- Specified by:
readCharin interfacejavax.jms.StreamMessage- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
readDouble
public double readDouble() throws javax.jms.JMSExceptionRead- Specified by:
readDoublein interfacejavax.jms.StreamMessage- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
readFloat
public float readFloat() throws javax.jms.JMSExceptionRead- Specified by:
readFloatin interfacejavax.jms.StreamMessage- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
readInt
public int readInt() throws javax.jms.JMSExceptionRead- Specified by:
readIntin interfacejavax.jms.StreamMessage- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
readLong
public long readLong() throws javax.jms.JMSExceptionRead- Specified by:
readLongin interfacejavax.jms.StreamMessage- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
readObject
public Object readObject() throws javax.jms.JMSException
Read- Specified by:
readObjectin interfacejavax.jms.StreamMessage- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
readShort
public short readShort() throws javax.jms.JMSExceptionRead- Specified by:
readShortin interfacejavax.jms.StreamMessage- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
readString
public String readString() throws javax.jms.JMSException
Read- Specified by:
readStringin interfacejavax.jms.StreamMessage- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
reset
public void reset() throws javax.jms.JMSExceptionReset- Specified by:
resetin interfacejavax.jms.StreamMessage- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeBoolean
public void writeBoolean(boolean value) throws javax.jms.JMSExceptionWrite- Specified by:
writeBooleanin interfacejavax.jms.StreamMessage- Parameters:
value- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeByte
public void writeByte(byte value) throws javax.jms.JMSExceptionWrite- Specified by:
writeBytein interfacejavax.jms.StreamMessage- Parameters:
value- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeBytes
public void writeBytes(byte[] value, int offset, int length) throws javax.jms.JMSExceptionWrite- Specified by:
writeBytesin interfacejavax.jms.StreamMessage- Parameters:
value- The valueoffset- The offsetlength- The length- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeBytes
public void writeBytes(byte[] value) throws javax.jms.JMSExceptionWrite- Specified by:
writeBytesin interfacejavax.jms.StreamMessage- Parameters:
value- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeChar
public void writeChar(char value) throws javax.jms.JMSExceptionWrite- Specified by:
writeCharin interfacejavax.jms.StreamMessage- Parameters:
value- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeDouble
public void writeDouble(double value) throws javax.jms.JMSExceptionWrite- Specified by:
writeDoublein interfacejavax.jms.StreamMessage- Parameters:
value- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeFloat
public void writeFloat(float value) throws javax.jms.JMSExceptionWrite- Specified by:
writeFloatin interfacejavax.jms.StreamMessage- Parameters:
value- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeInt
public void writeInt(int value) throws javax.jms.JMSExceptionWrite- Specified by:
writeIntin interfacejavax.jms.StreamMessage- Parameters:
value- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeLong
public void writeLong(long value) throws javax.jms.JMSExceptionWrite- Specified by:
writeLongin interfacejavax.jms.StreamMessage- Parameters:
value- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeObject
public void writeObject(Object value) throws javax.jms.JMSException
Write- Specified by:
writeObjectin interfacejavax.jms.StreamMessage- Parameters:
value- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeShort
public void writeShort(short value) throws javax.jms.JMSExceptionWrite- Specified by:
writeShortin interfacejavax.jms.StreamMessage- Parameters:
value- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
writeString
public void writeString(String value) throws javax.jms.JMSException
Write- Specified by:
writeStringin interfacejavax.jms.StreamMessage- Parameters:
value- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
-