Package org.apache.activemq.artemis.ra
Class ActiveMQRABytesMessage
- java.lang.Object
-
- org.apache.activemq.artemis.ra.ActiveMQRAMessage
-
- org.apache.activemq.artemis.ra.ActiveMQRABytesMessage
-
- All Implemented Interfaces:
jakarta.jms.BytesMessage,jakarta.jms.Message
public class ActiveMQRABytesMessage extends ActiveMQRAMessage implements jakarta.jms.BytesMessage
A wrapper for a message
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.ra.ActiveMQRAMessage
message, session
-
-
Constructor Summary
Constructors Constructor Description ActiveMQRABytesMessage(jakarta.jms.BytesMessage message, ActiveMQRASession session)Create a new wrapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBodyLength()Get body lengthbooleanreadBoolean()ReadbytereadByte()ReadintreadBytes(byte[] value)ReadintreadBytes(byte[] value, int length)ReadcharreadChar()ReaddoublereadDouble()ReadfloatreadFloat()ReadintreadInt()ReadlongreadLong()ReadshortreadShort()ReadintreadUnsignedByte()ReadintreadUnsignedShort()ReadStringreadUTF()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)WritevoidwriteUTF(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
-
ActiveMQRABytesMessage
public ActiveMQRABytesMessage(jakarta.jms.BytesMessage message, ActiveMQRASession session)Create a new wrapper- Parameters:
message- the messagesession- the session
-
-
Method Detail
-
getBodyLength
public long getBodyLength() throws jakarta.jms.JMSExceptionGet body length- Specified by:
getBodyLengthin interfacejakarta.jms.BytesMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readBoolean
public boolean readBoolean() throws jakarta.jms.JMSExceptionRead- Specified by:
readBooleanin interfacejakarta.jms.BytesMessage- 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.BytesMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readBytes
public int readBytes(byte[] value, int length) throws jakarta.jms.JMSExceptionRead- Specified by:
readBytesin interfacejakarta.jms.BytesMessage- Parameters:
value- The valuelength- The length- Returns:
- The result
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readBytes
public int readBytes(byte[] value) throws jakarta.jms.JMSExceptionRead- Specified by:
readBytesin interfacejakarta.jms.BytesMessage- Parameters:
value- The value- Returns:
- The result
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readChar
public char readChar() throws jakarta.jms.JMSExceptionRead- Specified by:
readCharin interfacejakarta.jms.BytesMessage- 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.BytesMessage- 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.BytesMessage- 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.BytesMessage- 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.BytesMessage- 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.BytesMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readUnsignedByte
public int readUnsignedByte() throws jakarta.jms.JMSExceptionRead- Specified by:
readUnsignedBytein interfacejakarta.jms.BytesMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readUnsignedShort
public int readUnsignedShort() throws jakarta.jms.JMSExceptionRead- Specified by:
readUnsignedShortin interfacejakarta.jms.BytesMessage- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
readUTF
public String readUTF() throws jakarta.jms.JMSException
Read- Specified by:
readUTFin interfacejakarta.jms.BytesMessage- 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.BytesMessage- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeBoolean
public void writeBoolean(boolean value) throws jakarta.jms.JMSExceptionWrite- Specified by:
writeBooleanin interfacejakarta.jms.BytesMessage- 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.BytesMessage- 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.BytesMessage- 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.BytesMessage- 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.BytesMessage- 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.BytesMessage- 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.BytesMessage- 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.BytesMessage- 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.BytesMessage- 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.BytesMessage- 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.BytesMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
writeUTF
public void writeUTF(String value) throws jakarta.jms.JMSException
Write- Specified by:
writeUTFin interfacejakarta.jms.BytesMessage- Parameters:
value- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
-