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

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