Interface FileWatchComponentBuilderFactory.FileWatchComponentBuilder
-
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.file.watch.FileWatchComponent>
- All Known Implementing Classes:
FileWatchComponentBuilderFactory.FileWatchComponentBuilderImpl
- Enclosing interface:
- FileWatchComponentBuilderFactory
public static interface FileWatchComponentBuilderFactory.FileWatchComponentBuilder extends ComponentBuilder<org.apache.camel.component.file.watch.FileWatchComponent>
Builder for the File Watch component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default FileWatchComponentBuilderFactory.FileWatchComponentBuilderbasicPropertyBinding(boolean basicPropertyBinding)Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities.default FileWatchComponentBuilderFactory.FileWatchComponentBuilderbridgeErrorHandler(boolean bridgeErrorHandler)Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.default FileWatchComponentBuilderFactory.FileWatchComponentBuilderconcurrentConsumers(int concurrentConsumers)The number of concurrent consumers.default FileWatchComponentBuilderFactory.FileWatchComponentBuilderfileHasher(io.methvin.watcher.hashing.FileHasher fileHasher)Reference to io.methvin.watcher.hashing.FileHasher.default FileWatchComponentBuilderFactory.FileWatchComponentBuilderpollThreads(int pollThreads)The number of threads polling WatchService.default FileWatchComponentBuilderFactory.FileWatchComponentBuilderqueueSize(int queueSize)Maximum size of queue between WatchService and consumer.default FileWatchComponentBuilderFactory.FileWatchComponentBuilderuseFileHashing(boolean useFileHashing)Enables or disables file hashing to detect duplicate events.-
Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
-
-
-
Method Detail
-
bridgeErrorHandler
default FileWatchComponentBuilderFactory.FileWatchComponentBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a:booleantype. Default: false Group: consumer
-
concurrentConsumers
default FileWatchComponentBuilderFactory.FileWatchComponentBuilder concurrentConsumers(int concurrentConsumers)
The number of concurrent consumers. Increase this value, if your route is slow to prevent buffering in queue. The option is a:inttype. Default: 1 Group: consumer
-
fileHasher
default FileWatchComponentBuilderFactory.FileWatchComponentBuilder fileHasher(io.methvin.watcher.hashing.FileHasher fileHasher)
Reference to io.methvin.watcher.hashing.FileHasher. This prevents emitting duplicate events on some platforms. For working with large files and if you dont need detect multiple modifications per second per file, use #lastModifiedTimeFileHasher. You can also provide custom implementation in registry. The option is a:io.methvin.watcher.hashing.FileHashertype. Default: #murmur3FFileHasher Group: consumer
-
pollThreads
default FileWatchComponentBuilderFactory.FileWatchComponentBuilder pollThreads(int pollThreads)
The number of threads polling WatchService. Increase this value, if you see OVERFLOW messages in log. The option is a:inttype. Default: 1 Group: consumer
-
queueSize
default FileWatchComponentBuilderFactory.FileWatchComponentBuilder queueSize(int queueSize)
Maximum size of queue between WatchService and consumer. Unbounded by default. The option is a:inttype. Default: 2147483647 Group: consumer
-
useFileHashing
default FileWatchComponentBuilderFactory.FileWatchComponentBuilder useFileHashing(boolean useFileHashing)
Enables or disables file hashing to detect duplicate events. If you disable this, you can get some events multiple times on some platforms and JDKs. Check java.nio.file.WatchService limitations for your target platform. The option is a:booleantype. Default: true Group: consumer
-
basicPropertyBinding
default FileWatchComponentBuilderFactory.FileWatchComponentBuilder basicPropertyBinding(boolean basicPropertyBinding)
Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities. The option is a:booleantype. Default: false Group: advanced
-
-