setPrefetchThreshold procedure
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
setPrefetchThreshold procedure
Determines when the SonicMQ client goes back to the broker for more messages.
Note: The JMS providers other than SonicMQ do not support this method.
Syntax
|
Parameter
- threshold
- Prefetch threshold.
Applies to
Session
objects for ptpsession
Notes
- The default is 1. For example, a threshold value of 1 means that Sonic does not go back to the broker for more messages until the last message has been delivered.
- If this procedure is called after beginSession procedure is called, an error is raised.
See also
setPrefetchCount procedure, setPrefetchThreshold procedure
For more information, see the Controlling flow of messages.