Skip to content

Add possibility to listen on a directory #702

@dr0i

Description

@dr0i

Add a parameter to DirReader.java that enables the Reader to listen without ending if a new file is put to the directory. If a new file comes in the file is read and passed on, just like the Reader works on files it finds in the directory right now.

Would be useful for e.g. https://github.com/hbz/rpb/ where at the moment a new Flux instance is loaded and executed, i.e. a Fix and all lookup-tables coming with it is loaded anew. If this happens (atm sometimes) 5 times a minute => 5 whole Flux instances are started in parallel. i.e. i.a. all maps are loaded 5 times in parallel . With the "directory-listener" option the Flux and Fix would also be loaded once.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions