SubscriptionClient.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 RECEIVEANDDELETE mode, the default value is 0. For PEEKLOCK mode, the default value is 100.
The value cannot be set until the receiver is created.
public void setPrefetchCount(int prefetchCount)
Parameters
- prefetchCount
- int