ODAC

TOraQueue.Dequeue Method

Dequeueus a message as a TOraObject.

Class

TOraQueue

Syntax

function Dequeue(Payload: TOraObject; MessageProperties: TQueueMessageProperties = nil; DequeueOptions: TDequeueOptions = nil): TMessageId; overload;

Parameters
Payload
Holds a message content as a TOraObject.
MessageProperties
Holds the properties of a message that will be dequeued.
DequeueOptions
Holds the options for dequeueing messages.
Return Value
message ID as string.

Remarks

Use one of Dequeue method overloads to dequeue messages. Use overloads with string or TBytes payload for queues with the RAW payload type. For queues with the object payload type pass TOraObject instance with appropriate object type to Dequeue method. If DequeueOptions parameter was not specified, the TOraQueue.DequeueOptions property of TOraQueue component will be used. MessageProperties parameter will be filled with the properties of the dequeued message.

In Direct mode only queues with RAW payload are supported.

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