Class: MapMessage

MapMessage

A MapMessage object is used to send a message that contains a set of key-value pairs as its payload.

new MapMessage()

This method is not meant to be used directly. Creates a MapMessage object that is used to send a message that contains a set of key-value pairs as its payload.

Extends

Method Summary

getObject
Returns the value of the specified key name.
setObject
Sets the value of the specified key name into the message.

Inherited Methods

Method Detail

getObject() → {Object}

Returns the value of the specified key name.
Returns:
Type
Object

setObject(name, value)

Sets the value of the specified key name into the message.
Note that values must be one of recognized Java primitives, e.g. integer, double, string, etc. Use of a custom object may raise an exception on the JMS Extender and cause the message to be lost.
Parameters:
Name Type Description
name String key name of the key-value pair.
value Object value of the key-value pair.