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.EndpointConsumerBuilder
Builder for endpoint for the File Watch component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()
antInclude
(String antInclude) ANT style pattern to match files.autoCreate
(boolean autoCreate) Auto create directory if does not exists.autoCreate
(String autoCreate) Auto create directory if does not exists.Comma separated list of events to watch.recursive
(boolean recursive) Watch recursive in current and child directories (including newly created directories).Watch recursive in current and child directories (including newly created directories).useFileHashing
(boolean useFileHashing) Enables or disables file hashing to detect duplicate events.useFileHashing
(String useFileHashing) Enables or disables file hashing to detect duplicate events.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolve
-
Method Details
-
advanced
-
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
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
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
-
events
Comma separated list of events to watch. Possible values: CREATE,MODIFY,DELETE. The option is a: <code>java.lang.String</code> type. Default: CREATE,MODIFY,DELETE Group: consumer- Parameters:
events
- the value to set- Returns:
- the dsl builder
-
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
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
-