setPrefetchCount procedure
- Last Updated: August 26, 2021
- 1 minute read
- OpenEdge
- Version 12.2
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
|
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 beginSession procedure is called, an error is raised.
See also
#rfi1387308685766, setPrefetchThreshold procedure
For more information, see the Controlling flow of messages.