Habari STOMP Client for RabbitMQ 9.4
Object Pascal STOMP client library for RabbitMQ
Loading...
Searching...
No Matches
TBTMapMessage Class Reference

Used to send a set of name-value pairs. More...

Inheritance diagram for TBTMapMessage:
IMapMessage TBTMessage IMessage IMessage

Public Member Functions

 TBTMapMessage (const TBTStompClient ATransport)
 Constructor.
Public Member Functions inherited from TBTMessage
PMStrings GetPropertyNames ()
 Returns a list of all the property names.
string GetStringProperty (const string Key)
 Get the value of string property Key.
 SetStringProperty (const string Key, const string Value)
 Set the value of string property Key.
 TBTMessage (const TBTStompClient ATransport)
 Constructor.
 TBTMessage (const TBTStompClient ATransport, const string ASubscriptionID)
 Constructor.
 TBTMessage (const TBTStompClient ATransport, const RawByteString AContent, const string ASubscriptionID)
 Constructor.
 ~TBTMessage ()

Protected Member Functions

PMStrings GetMapNames ()
 Returns a list of all the names in the MapMessage object.
Boolean ItemExists (const string AName)
 Indicates whether an item exists in this MapMessage object.
 SetBoolean (const string AName, const Boolean AValue)
 Sets the Boolean value with the specified name.
Boolean GetBoolean (const string AName)
 Returns the Boolean value with the specified name.
 SetInt (const string AName, const Integer AValue)
 Sets the Integer value with the specified name.
Integer GetInt (const string AName)
 Returns the Integer value with the specified name.
 SetString (const string AName, const string AValue)
 Sets the string value with the specified name.
string GetString (const string AName)
 Returns the string value with the specified name.
Protected Member Functions inherited from TBTMessage
 SetNackHeaders (const TStrings Value)
string GetTransactionID ()
 SetTransactionID (const string Value)
string GetMsgID ()
RawByteString GetContent ()
 SetContent (const RawByteString Value)
 Acknowledge ()
 Acknowledges all consumed messages of the session of this consumed message.
 Nack ()
 NACK is the opposite of ACK.
Boolean GetBooleanProperty (const string Key)
 Get the value of boolean property Key.
 SetBooleanProperty (const string Key, const Boolean Value)
 Set the value of boolean property Key.
Integer GetIntProperty (const string Key)
 Get the value of int property Key.
 SetIntProperty (const string Key, const Integer Value)
 Set the value of int property Key.

Additional Inherited Members

Public Attributes inherited from IMessage
string JMSCorrelationID
 The correlation ID for the message.
IDestination JMSDestination
 Gets the Destination object for this message.
TDateTime JMSExpiration
 The message's expiration value.
TJMSDeliveryMode JMSDeliveryMode
 Whether or not the message is persistent.
Integer JMSPriority
 The message priority level.
Boolean JMSRedelivered
 Redelivered - Returns true if this message has been redelivered to this or another consumer before being acknowledged successfully.
IDestination JMSReplyTo
 The IDestination object to which a reply to this message should be sent.
TDateTime JMSTimestamp
 The timestamp the broker added to the message.
string JMSMessageID
 The message ID which is set by the provider.
string JMSType
 The type name of this message.
Public Attributes inherited from TBTMessage
string JMSCorrelationID
IDestination JMSDestination
TDateTime JMSExpiration
TJMSDeliveryMode JMSDeliveryMode
Integer JMSPriority
Boolean JMSRedelivered
IDestination JMSReplyTo
TDateTime JMSTimestamp
string JMSMessageID
string JMSType
string TransactionID
RawByteString Content
 The message content.
string StompSubscriptionID
 required for ACK in STOMP 1.1

Detailed Description

Used to send a set of name-value pairs.

The names are String objects, and the values are primitive data types. The names must have a value that is not an empty string. The entries can be accessed sequentially or randomly by name. The order of the entries is undefined.

IMapMessage inherits from the IMessage interface and adds a message body that contains a Map.

Constructor & Destructor Documentation

◆ TBTMapMessage()

TBTMapMessage::TBTMapMessage ( const TBTStompClient ATransport)

Constructor.

Member Function Documentation

◆ GetBoolean()

Boolean TBTMapMessage::GetBoolean ( const string Name)
protected

Returns the Boolean value with the specified name.

Implements IMapMessage.

◆ GetInt()

Integer TBTMapMessage::GetInt ( const string Name)
protected

Returns the Integer value with the specified name.

Implements IMapMessage.

◆ GetMapNames()

PMStrings TBTMapMessage::GetMapNames ( )
protected

Returns a list of all the names in the MapMessage object.

Implements IMapMessage.

◆ GetString()

string TBTMapMessage::GetString ( const string Name)
protected

Returns the string value with the specified name.

Implements IMapMessage.

◆ ItemExists()

Boolean TBTMapMessage::ItemExists ( const string Name)
protected

Indicates whether an item exists in this MapMessage object.

Implements IMapMessage.

◆ SetBoolean()

TBTMapMessage::SetBoolean ( const string Name,
const Boolean Value )
protected

Sets the Boolean value with the specified name.

Implements IMapMessage.

◆ SetInt()

TBTMapMessage::SetInt ( const string Name,
const Integer Value )
protected

Sets the Integer value with the specified name.

Implements IMapMessage.

◆ SetString()

TBTMapMessage::SetString ( const string Name,
const string Value )
protected

Sets the string value with the specified name.

Implements IMapMessage.