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

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

PROCEDURE setPrefetchThreshold.
DEFINE INPUT PARAMETER threshold AS INTEGER.

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 beginSessionprocedure is called, an error is raised.

See also

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