I have come across an interesting scenario. I have a folder in which many files are placed at once (around 20+).
In my adapter I need such a logic that whenever file adapter polls the directory, it should only pick one file, wait for the specified time (in PollingFrequency interval or maybe some other way) and then poll the next file. Right now it polls all the files in one go.
Is there any property that I can use or any other logic that can help me achieve this?