NonStop JMS C++ API Programmer's Guide

NSJMS C++ API Classes and Methods
NonStop Server for Java Message Service C++ API Programmer’s Guide526459-002
4-6
StreamMessage Class
StreamMessage Class
The StreamMessage class extends the Message class and sends a message that
contains a stream of primitives.
freeMessage
Deallocates resources for a Message instance.
freeProducer
Deallocates resources for a Producer instance.
unsubscribe
Unsubscribe from a durable subscription that has been created
by a client.
StreamMessage Methods Description
readBoolean
Reads a boolean from the string message.
readByte
Reads a byte value from the string message.
readBytes
Reads a byte array field from the string message.
readDouble
Reads a double from the string message.
readFloat
Reads a float from the string message.
readInt
Reads an integer from the string message.
readLong
Reads a 64-bit integer from the string message.
readShort
Reads a 16-bit integer from the string message.
readString
Reads a string from the string message.
reset
Puts the StreamMessage body in read-only mode and
repositions the stream to the beginning.
writeBoolean
Writes a boolean to the stream message. The value true is
written as the value 1; the value false is written as the
value 0.
writeByte
Writes a byte value to the string message.
writeBytes
Writes a byte array field to the string message.
writeDouble
Writes a double to the string message.
writeFloat
Writes a float to the string message.
writeInt
Writes an integer to the string message.
writeLong
Writes a long to the string message.
writeShort
Writes a short to the string message.
writeString
Writes a string to the string message.
Session Methods Description (page2of2)