public class ActiveMQBytesMessage extends ActiveMQMessage implements jakarta.jms.BytesMessage
BytesMessage.| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
message, OLD_QUEUE_QUALIFIED_PREFIX, OLD_TEMP_QUEUE_QUALIFED_PREFIX, OLD_TEMP_TOPIC_QUALIFED_PREFIX, OLD_TOPIC_QUALIFIED_PREFIX, propertiesReadOnly, readOnly, replyTo| Modifier | Constructor and Description |
|---|---|
|
ActiveMQBytesMessage(jakarta.jms.BytesMessage foreign,
ClientSession session)
Foreign message constructor
|
protected |
ActiveMQBytesMessage(ClientMessage message,
ClientSession session)
Constructor on receipt at client side
|
protected |
ActiveMQBytesMessage(ClientSession session)
This constructor is used to construct messages prior to sending
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearBody() |
void |
doBeforeReceive() |
void |
doBeforeSend() |
protected <T> T |
getBodyInternal(Class<T> c) |
long |
getBodyLength() |
byte |
getType() |
boolean |
isBodyAssignableTo(Class c) |
boolean |
readBoolean() |
byte |
readByte() |
int |
readBytes(byte[] value) |
int |
readBytes(byte[] value,
int length) |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
reset() |
void |
writeBoolean(boolean value) |
void |
writeByte(byte value) |
void |
writeBytes(byte[] value) |
void |
writeBytes(byte[] value,
int offset,
int length) |
void |
writeChar(char value) |
void |
writeDouble(double value) |
void |
writeFloat(float value) |
void |
writeInt(int value) |
void |
writeLong(long value) |
void |
writeObject(Object value) |
void |
writeShort(short value) |
void |
writeUTF(String value) |
acknowledge, checkBuffer, checkPrefix, checkPrefixStr, checkRead, checkWrite, clearProperties, coreCompositeTypeToJMSCompositeType, coreMaptoJMSMap, createMessage, createMessage, getBody, getBooleanProperty, getByteProperty, getCoreMessage, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hasNoBody, prefixOf, propertyExists, resetMessageID, saveToOutputStream, setBooleanProperty, setByteProperty, setClientAcknowledge, setDoubleProperty, setFloatProperty, setIndividualAcknowledge, setInputStream, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setOutputStream, setShortProperty, setStringProperty, toString, waitCompletionOnStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacknowledge, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringPropertypublic static final byte TYPE
protected ActiveMQBytesMessage(ClientSession session)
protected ActiveMQBytesMessage(ClientMessage message, ClientSession session)
public ActiveMQBytesMessage(jakarta.jms.BytesMessage foreign,
ClientSession session)
throws jakarta.jms.JMSException
jakarta.jms.JMSExceptionpublic boolean readBoolean()
throws jakarta.jms.JMSException
readBoolean in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic byte readByte()
throws jakarta.jms.JMSException
readByte in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic int readUnsignedByte()
throws jakarta.jms.JMSException
readUnsignedByte in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic short readShort()
throws jakarta.jms.JMSException
readShort in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic int readUnsignedShort()
throws jakarta.jms.JMSException
readUnsignedShort in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic char readChar()
throws jakarta.jms.JMSException
readChar in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic int readInt()
throws jakarta.jms.JMSException
readInt in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic long readLong()
throws jakarta.jms.JMSException
readLong in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic float readFloat()
throws jakarta.jms.JMSException
readFloat in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic double readDouble()
throws jakarta.jms.JMSException
readDouble in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic String readUTF() throws jakarta.jms.JMSException
readUTF in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic int readBytes(byte[] value)
throws jakarta.jms.JMSException
readBytes in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic int readBytes(byte[] value,
int length)
throws jakarta.jms.JMSException
readBytes in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeBoolean(boolean value)
throws jakarta.jms.JMSException
writeBoolean in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeByte(byte value)
throws jakarta.jms.JMSException
writeByte in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeShort(short value)
throws jakarta.jms.JMSException
writeShort in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeChar(char value)
throws jakarta.jms.JMSException
writeChar in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeInt(int value)
throws jakarta.jms.JMSException
writeInt in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeLong(long value)
throws jakarta.jms.JMSException
writeLong in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeFloat(float value)
throws jakarta.jms.JMSException
writeFloat in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeDouble(double value)
throws jakarta.jms.JMSException
writeDouble in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeUTF(String value) throws jakarta.jms.JMSException
writeUTF in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeBytes(byte[] value)
throws jakarta.jms.JMSException
writeBytes in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeBytes(byte[] value,
int offset,
int length)
throws jakarta.jms.JMSException
writeBytes in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void writeObject(Object value) throws jakarta.jms.JMSException
writeObject in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void reset()
throws jakarta.jms.JMSException
reset in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void doBeforeReceive()
throws ActiveMQException
doBeforeReceive in class ActiveMQMessageActiveMQExceptionpublic void clearBody()
throws jakarta.jms.JMSException
clearBody in interface jakarta.jms.MessageclearBody in class ActiveMQMessagejakarta.jms.JMSExceptionpublic long getBodyLength()
throws jakarta.jms.JMSException
getBodyLength in interface jakarta.jms.BytesMessagejakarta.jms.JMSExceptionpublic void doBeforeSend()
throws Exception
doBeforeSend in class ActiveMQMessageExceptionpublic byte getType()
getType in class ActiveMQMessagepublic boolean isBodyAssignableTo(Class c)
isBodyAssignableTo in interface jakarta.jms.MessageisBodyAssignableTo in class ActiveMQMessageprotected <T> T getBodyInternal(Class<T> c)
getBodyInternal in class ActiveMQMessageCopyright © 2022 The Apache Software Foundation. All rights reserved.