Listens to one or more queues on behalf of the list of agents.
Class
TOraQueue
Syntax
procedure Listen(Agents: TQueueAgents; ListDeliveryMode: TQueueDeliveryMode; Agent: TQueueAgent; var MessageDeliveryMode: TQueueDeliveryMode; WaitTimeout: integer = AQ_FOREVER); overload;
Parameters
Agents
Holds the list of the agents.
ListDeliveryMode
Holds the message type (persistent, buffered messages or both).
Agent
Holds the agent name when monitoring multiconsumer queues.
MessageDeliveryMode
Holds the message type along with the queue and consumer for whom there is a message.
WaitTimeout
Holds the amount of time to wait if there are no messages found.