Class StreamMessageUtil
- java.lang.Object
-
- org.apache.activemq.artemis.reader.MessageUtil
-
- org.apache.activemq.artemis.reader.StreamMessageUtil
-
public class StreamMessageUtil extends MessageUtil
-
-
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 Constructor Description StreamMessageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanstreamReadBoolean(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)Method to read boolean values out of the Stream protocol existent on JMS Stream Messages Throws IllegalStateException if the type was invalidstatic bytestreamReadByte(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)static org.apache.activemq.artemis.api.core.Pair<java.lang.Integer,java.lang.Integer>streamReadBytes(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff, int remainingBytes, byte[] value)Utility for reading bytes out of streaming.static charstreamReadChar(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)static doublestreamReadDouble(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)static floatstreamReadFloat(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)static intstreamReadInteger(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)static longstreamReadLong(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)static java.lang.ObjectstreamReadObject(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)static shortstreamReadShort(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)static java.lang.StringstreamReadString(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)-
Methods 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
-
-
-
-
Method Detail
-
streamReadBoolean
public static boolean streamReadBoolean(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)
Method to read boolean values out of the Stream protocol existent on JMS Stream Messages Throws IllegalStateException if the type was invalid- Parameters:
buff-- Returns:
-
streamReadByte
public static byte streamReadByte(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)
-
streamReadShort
public static short streamReadShort(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)
-
streamReadChar
public static char streamReadChar(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)
-
streamReadInteger
public static int streamReadInteger(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)
-
streamReadLong
public static long streamReadLong(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)
-
streamReadFloat
public static float streamReadFloat(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)
-
streamReadDouble
public static double streamReadDouble(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)
-
streamReadString
public static java.lang.String streamReadString(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)
-
streamReadBytes
public static org.apache.activemq.artemis.api.core.Pair<java.lang.Integer,java.lang.Integer> streamReadBytes(org.apache.activemq.artemis.api.core.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 messagebuff-- Returns:
- a pair of remaining bytes and bytes read
-
streamReadObject
public static java.lang.Object streamReadObject(org.apache.activemq.artemis.api.core.ActiveMQBuffer buff)
-
-