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:
jakarta.jms.Message,jakarta.jms.StreamMessage
public class ActiveMQRAStreamMessage extends ActiveMQRAMessage implements jakarta.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(jakarta.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 jakarta.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(jakarta.jms.StreamMessage message, ActiveMQRASession session)Create a new wrapper- Parameters:
message- the messagesession- the session
-
-
Method Detail
-
readBoolean
public boolean readBoolean() throws jakarta.jms.JMSExceptionRead- Specified by:
readBooleanin interfacejakarta.jms.StreamMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readByte
public byte readByte() throws jakarta.jms.JMSExceptionRead- Specified by:
readBytein interfacejakarta.jms.StreamMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readBytes
public int readBytes(byte[] value) throws jakarta.jms.JMSExceptionRead- Specified by:
readBytesin interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readChar
public char readChar() throws jakarta.jms.JMSExceptionRead- Specified by:
readCharin interfacejakarta.jms.StreamMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readDouble
public double readDouble() throws jakarta.jms.JMSExceptionRead- Specified by:
readDoublein interfacejakarta.jms.StreamMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readFloat
public float readFloat() throws jakarta.jms.JMSExceptionRead- Specified by:
readFloatin interfacejakarta.jms.StreamMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readInt
public int readInt() throws jakarta.jms.JMSExceptionRead- Specified by:
readIntin interfacejakarta.jms.StreamMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readLong
public long readLong() throws jakarta.jms.JMSExceptionRead- Specified by:
readLongin interfacejakarta.jms.StreamMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readObject
public Object readObject() throws jakarta.jms.JMSException
Read- Specified by:
readObjectin interfacejakarta.jms.StreamMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readShort
public short readShort() throws jakarta.jms.JMSExceptionRead- Specified by:
readShortin interfacejakarta.jms.StreamMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readString
public String readString() throws jakarta.jms.JMSException
Read- Specified by:
readStringin interfacejakarta.jms.StreamMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
reset
public void reset() throws jakarta.jms.JMSExceptionReset- Specified by:
resetin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeBoolean
public void writeBoolean(boolean value) throws jakarta.jms.JMSExceptionWrite- Specified by:
writeBooleanin interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeByte
public void writeByte(byte value) throws jakarta.jms.JMSExceptionWrite- Specified by:
writeBytein interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeBytes
public void writeBytes(byte[] value, int offset, int length) throws jakarta.jms.JMSExceptionWrite- Specified by:
writeBytesin interfacejakarta.jms.StreamMessage- Parameters:
value- The valueoffset- The offsetlength- The length- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeBytes
public void writeBytes(byte[] value) throws jakarta.jms.JMSExceptionWrite- Specified by:
writeBytesin interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeChar
public void writeChar(char value) throws jakarta.jms.JMSExceptionWrite- Specified by:
writeCharin interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeDouble
public void writeDouble(double value) throws jakarta.jms.JMSExceptionWrite- Specified by:
writeDoublein interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeFloat
public void writeFloat(float value) throws jakarta.jms.JMSExceptionWrite- Specified by:
writeFloatin interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeInt
public void writeInt(int value) throws jakarta.jms.JMSExceptionWrite- Specified by:
writeIntin interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeLong
public void writeLong(long value) throws jakarta.jms.JMSExceptionWrite- Specified by:
writeLongin interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeObject
public void writeObject(Object value) throws jakarta.jms.JMSException
Write- Specified by:
writeObjectin interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeShort
public void writeShort(short value) throws jakarta.jms.JMSExceptionWrite- Specified by:
writeShortin interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeString
public void writeString(String value) throws jakarta.jms.JMSException
Write- Specified by:
writeStringin interfacejakarta.jms.StreamMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
-