Release 10.1A: OpenEdge Development:
Messaging and ESB

> ## setPrefetchThreshold procedure

> Determines when the SonicMQ client goes back to the broker for more messages.

> #### Syntax

>     PROCEDURE setPrefetchThreshold.
>     DEFINE INPUT PARAMETER threshold AS INTEGER.

> #### Parameters

> ``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 the beginSession procedure is called, an error is raised.

> #### See also

> setPrefetchCount procedure, setPrefetchThreshold procedure

> For more information, see the "Controlling flow of messages" section.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095