Try OpenEdge Now
skip to main content
Messaging and ESB
ABL - JMS API Reference : setPrefetchCount procedure
 

setPrefetchCount procedure

Sets the number of messages a SonicMQ client can retrieve in a single operation from a queue containing multiple messages.
Note: The JMS providers other than SonicMQ do not support this method.

Syntax

PROCEDURE setPrefetchCount.
DEFINE INPUT PARAMETER count AS INTEGER.

Applies to

Session objects

Notes

*The default is 3. For example, a count of 3 means that the Sonic client retrieves up to three message from a queue.
*If this procedure is called after beginSessionprocedure is called, an error is raised.

See also

setPrefetchCountprocedure, setPrefetchThresholdprocedure
For more information, see the Controlling flow of messages.