Interface FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver
- Enclosing interface:
- FileWatchEndpointBuilderFactory
public static interface FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder extends org.apache.camel.builder.EndpointConsumerBuilderBuilder for endpoint for the File Watch component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default FileWatchEndpointBuilderFactory.AdvancedFileWatchEndpointBuilderadvanced()default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderantInclude(String antInclude)ANT style pattern to match files.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderautoCreate(boolean autoCreate)Auto create directory if does not exists.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderautoCreate(String autoCreate)Auto create directory if does not exists.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderbridgeErrorHandler(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 FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderbridgeErrorHandler(String 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 FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderconcurrentConsumers(int concurrentConsumers)The number of concurrent consumers.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderconcurrentConsumers(String concurrentConsumers)The number of concurrent consumers.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderevents(String events)Comma separated list of events to watch.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderevents(Set<org.apache.camel.component.file.watch.constants.FileEventEnum> events)Comma separated list of events to watch.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderfileHasher(io.methvin.watcher.hashing.FileHasher fileHasher)Reference to io.methvin.watcher.hashing.FileHasher.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderfileHasher(String fileHasher)Reference to io.methvin.watcher.hashing.FileHasher.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderpollThreads(int pollThreads)The number of threads polling WatchService.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderpollThreads(String pollThreads)The number of threads polling WatchService.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderqueueSize(int queueSize)Maximum size of queue between WatchService and consumer.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderqueueSize(String queueSize)Maximum size of queue between WatchService and consumer.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderrecursive(boolean recursive)Watch recursive in current and child directories (including newly created directories).default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderrecursive(String recursive)Watch recursive in current and child directories (including newly created directories).default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderuseFileHashing(boolean useFileHashing)Enables or disables file hashing to detect duplicate events.default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilderuseFileHashing(String useFileHashing)Enables or disables file hashing to detect duplicate events.
-
-
-
Method Detail
-
advanced
default FileWatchEndpointBuilderFactory.AdvancedFileWatchEndpointBuilder advanced()
-
antInclude
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder antInclude(String antInclude)
ANT style pattern to match files. The file is matched against path relative to endpoint path. Pattern must be also relative (not starting with slash). The option is a: <code>java.lang.String</code> type. Default: ** Group: consumer- Parameters:
antInclude- the value to set- Returns:
- the dsl builder
-
autoCreate
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder autoCreate(boolean autoCreate)
Auto create directory if does not exists. The option is a: <code>boolean</code> type. Default: true Group: consumer- Parameters:
autoCreate- the value to set- Returns:
- the dsl builder
-
autoCreate
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder autoCreate(String autoCreate)
Auto create directory if does not exists. The option will be converted to a <code>boolean</code> type. Default: true Group: consumer- Parameters:
autoCreate- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder 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: <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder bridgeErrorHandler(String 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 will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler- the value to set- Returns:
- the dsl builder
-
concurrentConsumers
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder 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: <code>int</code> type. Default: 1 Group: consumer- Parameters:
concurrentConsumers- the value to set- Returns:
- the dsl builder
-
concurrentConsumers
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder concurrentConsumers(String concurrentConsumers)
The number of concurrent consumers. Increase this value, if your route is slow to prevent buffering in queue. The option will be converted to a <code>int</code> type. Default: 1 Group: consumer- Parameters:
concurrentConsumers- the value to set- Returns:
- the dsl builder
-
events
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder events(Set<org.apache.camel.component.file.watch.constants.FileEventEnum> events)
Comma separated list of events to watch. The option is a: <code>java.util.Set<org.apache.camel.component.file.watch.constants.FileEventEnum></code> type. Default: CREATE,MODIFY,DELETE Group: consumer- Parameters:
events- the value to set- Returns:
- the dsl builder
-
events
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder events(String events)
Comma separated list of events to watch. The option will be converted to a <code>java.util.Set<org.apache.camel.component.file.watch.constants.FileEventEnum></code> type. Default: CREATE,MODIFY,DELETE Group: consumer- Parameters:
events- the value to set- Returns:
- the dsl builder
-
fileHasher
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder 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: <code>io.methvin.watcher.hashing.FileHasher</code> type. Default: #murmur3FFileHasher Group: consumer- Parameters:
fileHasher- the value to set- Returns:
- the dsl builder
-
fileHasher
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder fileHasher(String 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 will be converted to a <code>io.methvin.watcher.hashing.FileHasher</code> type. Default: #murmur3FFileHasher Group: consumer- Parameters:
fileHasher- the value to set- Returns:
- the dsl builder
-
pollThreads
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder pollThreads(int pollThreads)
The number of threads polling WatchService. Increase this value, if you see OVERFLOW messages in log. The option is a: <code>int</code> type. Default: 1 Group: consumer- Parameters:
pollThreads- the value to set- Returns:
- the dsl builder
-
pollThreads
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder pollThreads(String pollThreads)
The number of threads polling WatchService. Increase this value, if you see OVERFLOW messages in log. The option will be converted to a <code>int</code> type. Default: 1 Group: consumer- Parameters:
pollThreads- the value to set- Returns:
- the dsl builder
-
queueSize
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder queueSize(int queueSize)
Maximum size of queue between WatchService and consumer. Unbounded by default. The option is a: <code>int</code> type. Default: 2147483647 Group: consumer- Parameters:
queueSize- the value to set- Returns:
- the dsl builder
-
queueSize
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder queueSize(String queueSize)
Maximum size of queue between WatchService and consumer. Unbounded by default. The option will be converted to a <code>int</code> type. Default: 2147483647 Group: consumer- Parameters:
queueSize- the value to set- Returns:
- the dsl builder
-
recursive
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder recursive(boolean recursive)
Watch recursive in current and child directories (including newly created directories). The option is a: <code>boolean</code> type. Default: true Group: consumer- Parameters:
recursive- the value to set- Returns:
- the dsl builder
-
recursive
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder recursive(String recursive)
Watch recursive in current and child directories (including newly created directories). The option will be converted to a <code>boolean</code> type. Default: true Group: consumer- Parameters:
recursive- the value to set- Returns:
- the dsl builder
-
useFileHashing
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder 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: <code>boolean</code> type. Default: true Group: consumer- Parameters:
useFileHashing- the value to set- Returns:
- the dsl builder
-
useFileHashing
default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder useFileHashing(String 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 will be converted to a <code>boolean</code> type. Default: true Group: consumer- Parameters:
useFileHashing- the value to set- Returns:
- the dsl builder
-
-