Release 10.1A: OpenEdge Development:
Messaging and ESB

> ## setPrefetchCount procedure

> Sets the number of messages a SonicMQ client can retrieve in a single operation from a queue containing multiple messages.

> #### 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.

> - When the OpenEdge Adapter for SonicMQ sends a message to a queue that is full or to a topic whose queue is full, an error is raised.

> - 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