Class ActiveMQStreamMessage
- java.lang.Object
-
- org.apache.activemq.artemis.jms.client.ActiveMQMessage
-
- org.apache.activemq.artemis.jms.client.ActiveMQStreamMessage
-
- All Implemented Interfaces:
jakarta.jms.Message,jakarta.jms.StreamMessage
- Direct Known Subclasses:
ActiveMQStreamCompatibleMessage
public class ActiveMQStreamMessage extends ActiveMQMessage implements jakarta.jms.StreamMessage
ActiveMQ Artemis implementation of a JMS StreamMessage.
-
-
Field Summary
Fields Modifier and Type Field Description static byteTYPE-
Fields inherited from class org.apache.activemq.artemis.jms.client.ActiveMQMessage
message, OLD_QUEUE_QUALIFIED_PREFIX, OLD_TEMP_QUEUE_QUALIFED_PREFIX, OLD_TEMP_TOPIC_QUALIFED_PREFIX, OLD_TOPIC_QUALIFIED_PREFIX, propertiesReadOnly, readOnly, replyTo
-
-
Constructor Summary
Constructors Modifier Constructor Description ActiveMQStreamMessage()ActiveMQStreamMessage(jakarta.jms.StreamMessage foreign, ClientSession session)protectedActiveMQStreamMessage(ClientMessage message, ClientSession session)protectedActiveMQStreamMessage(ClientSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearBody()voiddoBeforeSend()bytegetType()booleanisBodyAssignableTo(Class c)booleanreadBoolean()bytereadByte()intreadBytes(byte[] value)charreadChar()doublereadDouble()floatreadFloat()intreadInt()longreadLong()ObjectreadObject()shortreadShort()StringreadString()voidreset()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 org.apache.activemq.artemis.jms.client.ActiveMQMessage
acknowledge, checkBuffer, checkPrefix, checkPrefixStr, checkRead, checkWrite, clearProperties, coreCompositeTypeToJMSCompositeType, coreMaptoJMSMap, createMessage, createMessage, doBeforeReceive, getBody, getBodyInternal, 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, waitCompletionOnStream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.jms.Message
acknowledge, 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, setStringProperty
-
-
-
-
Field Detail
-
TYPE
public static final byte TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ActiveMQStreamMessage
protected ActiveMQStreamMessage(ClientSession session)
-
ActiveMQStreamMessage
protected ActiveMQStreamMessage(ClientMessage message, ClientSession session)
-
ActiveMQStreamMessage
public ActiveMQStreamMessage(jakarta.jms.StreamMessage foreign, ClientSession session) throws jakarta.jms.JMSException- Throws:
jakarta.jms.JMSException
-
ActiveMQStreamMessage
public ActiveMQStreamMessage()
-
-
Method Detail
-
getType
public byte getType()
- Overrides:
getTypein classActiveMQMessage
-
readBoolean
public boolean readBoolean() throws jakarta.jms.JMSException- Specified by:
readBooleanin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
readByte
public byte readByte() throws jakarta.jms.JMSException- Specified by:
readBytein interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
readShort
public short readShort() throws jakarta.jms.JMSException- Specified by:
readShortin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
readChar
public char readChar() throws jakarta.jms.JMSException- Specified by:
readCharin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
readInt
public int readInt() throws jakarta.jms.JMSException- Specified by:
readIntin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
readLong
public long readLong() throws jakarta.jms.JMSException- Specified by:
readLongin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
readFloat
public float readFloat() throws jakarta.jms.JMSException- Specified by:
readFloatin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
readDouble
public double readDouble() throws jakarta.jms.JMSException- Specified by:
readDoublein interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
readString
public String readString() throws jakarta.jms.JMSException
- Specified by:
readStringin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
readBytes
public int readBytes(byte[] value) throws jakarta.jms.JMSException- Specified by:
readBytesin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
readObject
public Object readObject() throws jakarta.jms.JMSException
- Specified by:
readObjectin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeBoolean
public void writeBoolean(boolean value) throws jakarta.jms.JMSException- Specified by:
writeBooleanin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeByte
public void writeByte(byte value) throws jakarta.jms.JMSException- Specified by:
writeBytein interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeShort
public void writeShort(short value) throws jakarta.jms.JMSException- Specified by:
writeShortin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeChar
public void writeChar(char value) throws jakarta.jms.JMSException- Specified by:
writeCharin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeInt
public void writeInt(int value) throws jakarta.jms.JMSException- Specified by:
writeIntin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeLong
public void writeLong(long value) throws jakarta.jms.JMSException- Specified by:
writeLongin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeFloat
public void writeFloat(float value) throws jakarta.jms.JMSException- Specified by:
writeFloatin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeDouble
public void writeDouble(double value) throws jakarta.jms.JMSException- Specified by:
writeDoublein interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeString
public void writeString(String value) throws jakarta.jms.JMSException
- Specified by:
writeStringin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeBytes
public void writeBytes(byte[] value) throws jakarta.jms.JMSException- Specified by:
writeBytesin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeBytes
public void writeBytes(byte[] value, int offset, int length) throws jakarta.jms.JMSException- Specified by:
writeBytesin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
writeObject
public void writeObject(Object value) throws jakarta.jms.JMSException
- Specified by:
writeObjectin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
reset
public void reset() throws jakarta.jms.JMSException- Specified by:
resetin interfacejakarta.jms.StreamMessage- Throws:
jakarta.jms.JMSException
-
clearBody
public void clearBody() throws jakarta.jms.JMSException- Specified by:
clearBodyin interfacejakarta.jms.Message- Overrides:
clearBodyin classActiveMQMessage- Throws:
jakarta.jms.JMSException
-
doBeforeSend
public void doBeforeSend() throws Exception- Overrides:
doBeforeSendin classActiveMQMessage- Throws:
Exception
-
isBodyAssignableTo
public boolean isBodyAssignableTo(Class c)
- Specified by:
isBodyAssignableToin interfacejakarta.jms.Message- Overrides:
isBodyAssignableToin classActiveMQMessage
-
-