ODAC

TOraQueue.Enqueue Method

Enqueueus a message as TOraObject.

Class

TOraQueue

Syntax

function Enqueue(Payload: TOraObject; MessageProperties: TQueueMessageProperties = nil; EnqueueOptions: TEnqueueOptions = nil): TMessageId; overload;

Parameters
Payload
a message content as a TOraObject.
MessageProperties
Holds the properties of the message which will be enqueued.
EnqueueOptions
Holds the options fore enqueueing messages.
Return Value
a message ID.

Remarks

Use one of the Enqueue method overloads to enqueue messages. Use overloads with string or TBytes payload for queues with the RAW payload type. For queues with object payload type pass the TOraObject instance with appropriate object type to the Enqueue method. If EnqueueOptions or MessageProperies parameters were not specified, the TOraQueue.EnqueueOptions and TOraQueue.EnqueueMessageProperties properties of TOraQueue component will be used.

In Direct mode only queues with RAW payload are supported.

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback