I see examples where CSV files can be consumed using jet eg.
BatchSource<SalesRecordLine> source = Sources.filesBuilder(sourceDir)
.glob("*.csv")
.build(path -> Files.lines(path).skip(1).map(SalesRecordLine::parse));
In a multinode setup, will all the nodes start picking up the file (on say a shared NFS) or does it employ some smart locking (like Apache Camel's idempotent file consumer method?). How does Jet know the file has been completely flushed to disk before reading?
thanks