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-2
BytesMessage Class
BytesMessage Class
The BytesMessage class extends the Message class and sends a message that
contains a stream of uninterpreted bytes.
Consumer Class
The Consumer class is a client that uses a message consumer to receive messages
from a destination. A Consumer is created by passing a destination and consumer type
to a createConsumer() method supplied by a Session object.
MapMessage Class
The MapMessage class extends the Message class and sends a message that
contains name-value pairs.
BytesMessage Methods Description
readBytes
Read a portion of the bytes-message stream.
writeBytes
Write a byte array to the bytes-message stream.
Consumer Method Description
receive
Receive the next message that arrives within the specified timeout
interval.
MapMessage Methods Description (page 1 of 2)
getBoolean
Return the boolean value with the given name.
getByte
Return the byte value with the given name.
getBytes
Return the byte array value with the given name.
getDouble
Return the double value with the given name.
getFloat
Return the float value with the given name.
getInt
Return the integer value with the given name.
getLong
Return the long value with the given name.
getShort
Return the short value with the given name.
getString
Return the string value with the given name.
itemExists
Indicates whether an item exists in this MapMessage object.
setBoolean
Set a boolean value with the given name, into the Map.
setByte
Set a byte value with the given name, into the Map.
setBytes
Set a byte array value with the given name, into the Map.
setDouble
Set a double value with the given name, into the Map.
setFloat
Set a float value with the given name, into the Map.
setInt
Set a integer value with the given name, into the Map.