Class StreamMessageUtil
java.lang.Object
org.apache.activemq.artemis.reader.MessageUtil
org.apache.activemq.artemis.reader.StreamMessageUtil
-
Field Summary
Fields inherited from class org.apache.activemq.artemis.reader.MessageUtil
CONNECTION_ID_PROPERTY_NAME, CONNECTION_ID_PROPERTY_NAME_STRING, CORRELATIONID_HEADER_NAME, CORRELATIONID_HEADER_NAME_STRING, JMS, JMS_, JMSX, JMSXDELIVERYCOUNT, JMSXGROUPID, JMSXGROUPSEQ, JMSXUSERID, REPLYTO_HEADER_NAME, TYPE_HEADER_NAME, TYPE_HEADER_NAME_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanMethod to read boolean values out of the Stream protocol existent on JMS Stream Messages Throws IllegalStateException if the type was invalidstatic bytestreamReadByte(ActiveMQBuffer buff) streamReadBytes(ActiveMQBuffer buff, int remainingBytes, byte[] value) Utility for reading bytes out of streaming.static charstreamReadChar(ActiveMQBuffer buff) static doublestatic floatstatic intstatic longstreamReadLong(ActiveMQBuffer buff) static Objectstatic shortstatic StringMethods inherited from class org.apache.activemq.artemis.reader.MessageUtil
clearProperties, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSReplyTo, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getStringProperty, propertyExists, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSReplyTo, setJMSReplyTo, setJMSType, setLongProperty, setObjectProperty, setStringProperty
-
Constructor Details
-
StreamMessageUtil
public StreamMessageUtil()
-
-
Method Details
-
streamReadBoolean
Method to read boolean values out of the Stream protocol existent on JMS Stream Messages Throws IllegalStateException if the type was invalid -
streamReadByte
-
streamReadShort
-
streamReadChar
-
streamReadInteger
-
streamReadLong
-
streamReadFloat
-
streamReadDouble
-
streamReadString
-
streamReadBytes
public static Pair<Integer,Integer> streamReadBytes(ActiveMQBuffer buff, int remainingBytes, byte[] value) Utility for reading bytes out of streaming. It will return remainingBytes, bytesRead- Parameters:
remainingBytes- remaining Bytes from previous read. Send it to 0 if it was the first call for the message- Returns:
- a pair of remaining bytes and bytes read
-
streamReadObject
-