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

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

Inheritance diagram for TBTObjectMessage:
IObjectMessage TBTMessage IMessage IMessage

Public Member Functions

 SetObject (const TObject AObject)
 Sets the object containing this message's data.
TObject GetObject ()
 Gets the serializable object containing this message's data.
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 ()

Additional Inherited Members

Public Attributes inherited from IMessage
string CorrelationID
 The correlation ID for the message.
IDestination Destination
 Gets the Destination object for this message.
TDateTime Expiration
 The message's expiration value.
TDeliveryMode DeliveryMode
 Whether or not the message is persistent.
Integer Priority
 The message priority level.
Boolean Redelivered
 Redelivered - Returns true if this message has been redelivered to this or another consumer before being acknowledged successfully.
IDestination ReplyTo
 The IDestination object to which a reply to this message should be sent.
TDateTime Timestamp
 The timestamp the broker added to the message.
string MessageID
 The message id which is set by the provider.
string JMSType
 The type name of this message.
Public Attributes inherited from TBTMessage
string CorrelationID
IDestination Destination
TDateTime Expiration
TDeliveryMode DeliveryMode
Integer Priority
Boolean Redelivered
IDestination ReplyTo
TDateTime Timestamp
string MessageID
string JMSType
string TransactionID
RawByteString Content
 The message content.
string StompSubscriptionID
 required for ACK in STOMP 1.1
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.

Detailed Description

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

It inherits from the IMessage 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.

Implements IObjectMessage.

◆ 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

Implements IObjectMessage.