IMessageReceiver.setPrefetchCount(int prefetchCount) Method
Definition
Set the prefetch count of the receiver. Prefetch speeds up the message flow by aiming to have a message readily available for local retrieval when and before the application asks for one using Receive. Setting a non-zero value prefetches PrefetchCount number of messages. Setting the value to zero turns prefetch off. For both PEEKLOCK mode and RECEIVEANDDELETE mode, the default value is 0.
The value cannot be set until the receiver is created.
public abstract void setPrefetchCount(int prefetchCount)
Parameters
- prefetchCount
- int
The desired prefetch count.
Exceptions
if sets the value failed