Habari Client for Artemis 6.12
Object Pascal STOMP client library for ActiveMQ Artemis
TBTObjectMessage Class Reference

This object represents a object message. More...

Inheritance diagram for TBTObjectMessage:
IObjectMessage TBTMessage

Public Member Functions

 SetObject (const TObject AObject)
 Sets the object containing this message's data. More...
 
TObject GetObject ()
 Gets the serializable object containing this message's data. More...
 
- Public Member Functions inherited from TBTMessage
 Acknowledge ()
 Acknowledges all consumed messages of the session of this consumed message. More...
 
 Nack ()
 NACK is the opposite of ACK. More...
 
PMStrings GetPropertyNames ()
 Returns a list of all the property names.
 
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.
 
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.
 

Additional Inherited Members

- Public Attributes inherited from TBTMessage
RawByteString Content
 The message content. More...
 
string StompSubscriptionID
 required for ACK in STOMP 1.1 More...
 
string JMSCorrelationID
 Good consumes will add this header to any responses they send so that entire conversations can be correlated. More...
 
IDestination JMSDestination
 Gets the Destination object for this message. More...
 
TDateTime JMSExpiration
 The message's expiration value. More...
 
TJMSDeliveryMode JMSDeliveryMode
 Whether or not the message is persistent. More...
 
Integer JMSPriority
 The message priority level. More...
 
Boolean JMSRedelivered
 Redelivered - True if this message has been redelivered to this or another consumer before being acknowledged successfully. More...
 
IDestination JMSReplyTo
 The Destination object to which a reply to this message should be sent. More...
 
TDateTime JMSTimestamp
 The timestamp the broker added to the message. More...
 
string JMSMessageID
 The message ID which is set by the provider. More...
 
string JMSType
 The type name of this message. More...
 
string TransactionID
 The transaction id. More...
 

Detailed Description

This object represents a object message.

An ObjectMessage object is used to send a message that contains a serializable object.

It inherits from the Message interface and adds a body containing a single reference to an object.

Member Function Documentation

◆ GetObject()

TObject TBTObjectMessage::GetObject ( )

Gets the serializable object containing this message's data.

The default value is nil.

◆ SetObject()

TBTObjectMessage::SetObject ( const TObject  AObject)

Sets the object containing this message's data.

Parameters
AObjectnon-nil object reference
Exceptions
EIllegalArgumentExceptionwhen a nil pointer is passed