Assume you have 100 messages sitting in a directory and no other messages come in for 2 hours in this example.
The read interval is how often to read if there are still messages to read in a directory. The max messages is how many messages to “get” when you are reading, and the scan is how long to wait when they are no more messages to read.
That being said, parms set to 5, 10, and 30 for read, max msgs, and scan interval results in 10 messages every 5 seconds. So if you have 100 messages sitting there, it would take 50 seconds to read all of them to be processed.
Actual setting of the values takes a little tweaking based on how many messages you are receiving and other threads running. Setting it to low will result in a backup of messages for that thread, reading too many at once may choke other thread processes from doing their work.
I usually start of with 5, 5, and 30 and see what there leads. That’s a message a second and then waiting 30 seconds when no more messages to process. It’s easy to tweak because you only need to stop the thread to change the values. you can easily do this in a live environment generally without hurting other processes.
Hope this helps.