I did not work with Queue collection yet. But based on information I was able to gather it seems like this is a right approach to my problem.
I have console app that scan folder for new files of certain type. Based on specific criteria. Only new items are added to queue.xml file. This is done at some time interval (every 1 hour).
Another console app is triggered at different time point (every 4 hours). It reads queue.xml file and passes each item for processing. It seems that the best way is to parse xml file and create Queue collection. This way each item will be processed in order.
Here is problem. Processing file can take couple hours, and during that time queue.xml may have some new items, therefore Queue Collection will not reflect this changes.
Is it possible to parse xml file again and add new items to Queue that is currently in progress?
Changing size of the Collection during runtime will cause problems. Is it Queue different in that way?