5.2. Characteristics of Filesystem Gateway Listeners

A filesystem gateway listener can be called when a file is modified to process the changes universally. It creates notifications of any edits that are made.
The AbstractFileGateway class is the base for these gateways. It works with the AbstractScheduledManagedLifecycle class to derive information from events. It uses a single thread to perform file operations and send ESB messages to the bus.
Inserting the max-millis-for-response property results in the ESB messages being sent synchronously. If there is an exception, the gateway will move the file to an error directory. (For asynchronous processing, withdraw this property. There will be no notifications if an exception is encountered- instead, it will be processed in a different thread.)
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.