I am trying to setup a stream with Akka's javadsl which handles the processing of new files in a folder. My question is:
Should I re-run the RunnableFlow every time a new file is introduced,
or is it possible to keep a RunnableFlow running indefinitaly while the stream is waiting for new files to be introduced to the Source of said Flow?
My source as it is now:
Queue<Path> esbList = new Queue<>();
final Source<Path, BoxedUnit> pathSource = Source.from(esbList);
The Queue is a simple iterable queue