This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.22.x by this push:
new fb4e8f7deda7 [backport camel-4.22.x] CAMEL-26977: camel-file -
idempotentEager applies with a custom process strategy, and its description
names the idempotent read locks (#30117)
fb4e8f7deda7 is described below
commit fb4e8f7deda77026dc857a009fb1e0b89815a638
Author: Federico Mariani <[email protected]>
AuthorDate: Sun Nov 15 21:12:17 2026 +0100
[backport camel-4.22.x] CAMEL-26977: camel-file - idempotentEager applies
with a custom process strategy, and its description names the idempotent read
locks (#30117)
Co-authored-by: Claude <[email protected]>
---
.../apache/camel/catalog/components/azure-files.json | 2 +-
.../org/apache/camel/catalog/components/file.json | 2 +-
.../org/apache/camel/catalog/components/ftp.json | 2 +-
.../org/apache/camel/catalog/components/ftps.json | 2 +-
.../apache/camel/catalog/components/mina-sftp.json | 2 +-
.../org/apache/camel/catalog/components/sftp.json | 2 +-
.../org/apache/camel/catalog/components/smb.json | 2 +-
.../camel/component/file/azure/azure-files.json | 2 +-
.../org/apache/camel/component/file/file.json | 2 +-
.../camel/component/file/GenericFileEndpoint.java | 18 +++++++++++++-----
.../org/apache/camel/component/file/remote/ftp.json | 2 +-
.../org/apache/camel/component/file/remote/ftps.json | 2 +-
.../org/apache/camel/component/file/remote/sftp.json | 2 +-
.../camel/component/file/remote/mina/mina-sftp.json | 2 +-
.../META-INF/org/apache/camel/component/smb/smb.json | 2 +-
...FileIdempotentReadLockIdempotentConsumerTest.java | 20 ++++++++++++++++++++
.../endpoint/dsl/FileEndpointBuilderFactory.java | 10 ++++++++--
.../endpoint/dsl/FilesEndpointBuilderFactory.java | 10 ++++++++--
.../endpoint/dsl/FtpEndpointBuilderFactory.java | 10 ++++++++--
.../endpoint/dsl/FtpsEndpointBuilderFactory.java | 10 ++++++++--
.../endpoint/dsl/MinaSftpEndpointBuilderFactory.java | 10 ++++++++--
.../endpoint/dsl/SftpEndpointBuilderFactory.java | 10 ++++++++--
.../endpoint/dsl/SmbEndpointBuilderFactory.java | 10 ++++++++--
23 files changed, 103 insertions(+), 33 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json
index e95a0a18fbe9..b562eded6038 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json
@@ -105,7 +105,7 @@
"filterDirectory": { "index": 54, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 55, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 56, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 57, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 57, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 58, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 59, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 60, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/file.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/file.json
index c1200349bc7e..2ec0056c6ce2 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/file.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/file.json
@@ -110,7 +110,7 @@
"filterDirectory": { "index": 57, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 58, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 59, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 60, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 60, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 61, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 62, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 63, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftp.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftp.json
index 9594653f6b37..682d7f379b0a 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftp.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftp.json
@@ -128,7 +128,7 @@
"filterDirectory": { "index": 74, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 75, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 76, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 78, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 79, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 80, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftps.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftps.json
index d456ff187f84..5e63be4b903a 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftps.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftps.json
@@ -129,7 +129,7 @@
"filterDirectory": { "index": 74, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 75, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 76, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 78, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 79, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 80, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mina-sftp.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mina-sftp.json
index c55d47a5aa64..c07d591300f2 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mina-sftp.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mina-sftp.json
@@ -127,7 +127,7 @@
"filterDirectory": { "index": 74, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 75, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 76, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 78, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 79, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 80, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/sftp.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/sftp.json
index 3f3825e2dd92..640b45a0ff0a 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/sftp.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/sftp.json
@@ -132,7 +132,7 @@
"filterDirectory": { "index": 73, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 74, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 75, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 76, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 76, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 78, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 79, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smb.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smb.json
index 13a38368e94d..e8758516b5c7 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smb.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smb.json
@@ -108,7 +108,7 @@
"filterDirectory": { "index": 55, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 56, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 57, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 58, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 58, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 59, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 60, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 61, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/components/camel-azure/camel-azure-files/src/generated/resources/META-INF/org/apache/camel/component/file/azure/azure-files.json
b/components/camel-azure/camel-azure-files/src/generated/resources/META-INF/org/apache/camel/component/file/azure/azure-files.json
index e95a0a18fbe9..b562eded6038 100644
---
a/components/camel-azure/camel-azure-files/src/generated/resources/META-INF/org/apache/camel/component/file/azure/azure-files.json
+++
b/components/camel-azure/camel-azure-files/src/generated/resources/META-INF/org/apache/camel/component/file/azure/azure-files.json
@@ -105,7 +105,7 @@
"filterDirectory": { "index": 54, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 55, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 56, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 57, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 57, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 58, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 59, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 60, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/components/camel-file/src/generated/resources/META-INF/org/apache/camel/component/file/file.json
b/components/camel-file/src/generated/resources/META-INF/org/apache/camel/component/file/file.json
index c1200349bc7e..2ec0056c6ce2 100644
---
a/components/camel-file/src/generated/resources/META-INF/org/apache/camel/component/file/file.json
+++
b/components/camel-file/src/generated/resources/META-INF/org/apache/camel/component/file/file.json
@@ -110,7 +110,7 @@
"filterDirectory": { "index": 57, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 58, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 59, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 60, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 60, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 61, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 62, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 63, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
index d06b0594ccd3..efc91aa8ffbb 100644
---
a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
+++
b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
@@ -21,6 +21,7 @@ import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import java.util.concurrent.ScheduledExecutorService;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -58,6 +59,8 @@ public abstract class GenericFileEndpoint<T> extends
ScheduledPollEndpoint imple
protected static final int DEFAULT_IDEMPOTENT_CACHE_SIZE = 1000;
protected static final int DEFAULT_IN_PROGRESS_CACHE_SIZE = 50000;
+ // the read locks that add the key to the idempotent repository of the
endpoint when they acquire the lock
+ private static final Set<String> IDEMPOTENT_READ_LOCKS =
Set.of("idempotent", "idempotent-changed", "idempotent-rename");
private static final Logger LOG =
LoggerFactory.getLogger(GenericFileEndpoint.class);
@@ -290,7 +293,9 @@ public abstract class GenericFileEndpoint<T> extends
ScheduledPollEndpoint imple
+ "consuming the same files over and over again.")
protected Boolean idempotent;
@UriParam(label = "consumer,filter", javaType = "java.lang.Boolean",
defaultValue = "true",
- description = "Sets whether to eagerly add the filename to the
idempotent repository or wait until the exchange is complete.")
+ description = "Sets whether to eagerly add the filename to the
idempotent repository or wait until the exchange is complete."
+ + " Does not apply with an idempotent read lock
(readLock=idempotent, idempotent-changed or"
+ + " idempotent-rename), which adds the filename
when it acquires the lock.")
private Boolean idempotentEager = Boolean.TRUE;
@UriParam(label = "consumer,filter", javaType = "java.lang.String",
description = "To use a custom idempotent "
+ "key. By default the absolute path of the file is used. You can use
the File Language, for example to "
@@ -961,9 +966,12 @@ public abstract class GenericFileEndpoint<T> extends
ScheduledPollEndpoint imple
}
private boolean isIdempotentReadLock() {
- return exclusiveReadLockStrategy == null
- && ("idempotent".equals(readLock) ||
"idempotent-changed".equals(readLock)
- || "idempotent-rename".equals(readLock));
+ // the readLock option is not used with a custom process strategy or
exclusive read lock strategy
+ return processStrategy == null && exclusiveReadLockStrategy == null &&
isIdempotentReadLockName(readLock);
+ }
+
+ private static boolean isIdempotentReadLockName(String readLock) {
+ return readLock != null && IDEMPOTENT_READ_LOCKS.contains(readLock);
}
public String getCharset() {
@@ -1749,7 +1757,7 @@ public abstract class GenericFileEndpoint<T> extends
ScheduledPollEndpoint imple
if (readLock != null) {
params.put("readLock", readLock);
}
- if ("idempotent".equals(readLock) ||
"idempotent-changed".equals(readLock) || "idempotent-rename".equals(readLock)) {
+ if (isIdempotentReadLockName(readLock)) {
params.put("readLockIdempotentRepository", idempotentRepository);
}
if (readLockCheckInterval > 0) {
diff --git
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftp.json
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftp.json
index 9594653f6b37..682d7f379b0a 100644
---
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftp.json
+++
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftp.json
@@ -128,7 +128,7 @@
"filterDirectory": { "index": 74, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 75, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 76, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 78, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 79, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 80, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftps.json
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftps.json
index d456ff187f84..5e63be4b903a 100644
---
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftps.json
+++
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftps.json
@@ -129,7 +129,7 @@
"filterDirectory": { "index": 74, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 75, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 76, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 78, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 79, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 80, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/sftp.json
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/sftp.json
index 3f3825e2dd92..640b45a0ff0a 100644
---
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/sftp.json
+++
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/sftp.json
@@ -132,7 +132,7 @@
"filterDirectory": { "index": 73, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 74, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 75, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 76, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 76, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 78, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 79, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/components/camel-mina-sftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/mina/mina-sftp.json
b/components/camel-mina-sftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/mina/mina-sftp.json
index c55d47a5aa64..c07d591300f2 100644
---
a/components/camel-mina-sftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/mina/mina-sftp.json
+++
b/components/camel-mina-sftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/mina/mina-sftp.json
@@ -127,7 +127,7 @@
"filterDirectory": { "index": 74, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 75, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 76, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 77, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 78, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 79, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 80, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/components/camel-smb/src/generated/resources/META-INF/org/apache/camel/component/smb/smb.json
b/components/camel-smb/src/generated/resources/META-INF/org/apache/camel/component/smb/smb.json
index 13a38368e94d..e8758516b5c7 100644
---
a/components/camel-smb/src/generated/resources/META-INF/org/apache/camel/component/smb/smb.json
+++
b/components/camel-smb/src/generated/resources/META-INF/org/apache/camel/component/smb/smb.json
@@ -108,7 +108,7 @@
"filterDirectory": { "index": 55, "kind": "parameter", "displayName":
"Filter Directory", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the directory
based on Simple language. For example to filter on current date, you can use a
simple date pattern such as ${date:now:yyyMMdd}" },
"filterFile": { "index": 56, "kind": "parameter", "displayName": "Filter
File", "group": "filter", "label": "consumer,filter", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Filters the file based on
Simple language. For example to filter on file size, you can use ${file:size}
5000" },
"idempotent": { "index": 57, "kind": "parameter", "displayName":
"Idempotent", "group": "filter", "label": "consumer,filter", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Option to use the Idempotent Consumer EIP pattern to let Camel skip already
processed files. Will by default use a memory based LRUCache that holds 1000
entries. If noop=true then idempotent wil [...]
- "idempotentEager": { "index": 58, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete." },
+ "idempotentEager": { "index": 58, "kind": "parameter", "displayName":
"Idempotent Eager", "group": "filter", "label": "consumer,filter", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description": "Sets
whether to eagerly add the filename to the idempotent repository or wait until
the exchange is complete. Does not apply with an idempotent read lock
(readLock=idempotent, idempote [...]
"idempotentKey": { "index": 59, "kind": "parameter", "displayName":
"Idempotent Key", "group": "filter", "label": "consumer,filter", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom idempotent
key. By default the absolute path of the file is used. You can use the File
Language, for example to use the file name and file size, you can do:
idempotentKey=${file:name}-${file:size}" },
"idempotentRepository": { "index": 60, "kind": "parameter", "displayName":
"Idempotent Repository", "group": "filter", "label": "consumer,filter",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.IdempotentRepository", "deprecated": false, "autowired":
false, "secret": false, "description": "A pluggable repository
org.apache.camel.spi.IdempotentRepository which by default use
MemoryIdempotentRepository if none is specified and idempotent is true." },
"include": { "index": 61, "kind": "parameter", "displayName": "Include",
"group": "filter", "label": "consumer,filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Is used to include files, if filename
matches the regex pattern (matching is case in-sensitive). Notice if you use
symbols such as plus sign and others you would need to configure this using the
RAW() syntax if configuring th [...]
diff --git
a/core/camel-core/src/test/java/org/apache/camel/component/file/strategy/FileIdempotentReadLockIdempotentConsumerTest.java
b/core/camel-core/src/test/java/org/apache/camel/component/file/strategy/FileIdempotentReadLockIdempotentConsumerTest.java
index 70e1740010d3..b40ce139482e 100644
---
a/core/camel-core/src/test/java/org/apache/camel/component/file/strategy/FileIdempotentReadLockIdempotentConsumerTest.java
+++
b/core/camel-core/src/test/java/org/apache/camel/component/file/strategy/FileIdempotentReadLockIdempotentConsumerTest.java
@@ -16,9 +16,13 @@
*/
package org.apache.camel.component.file.strategy;
+import java.io.File;
+import java.util.concurrent.TimeUnit;
+
import org.apache.camel.ContextTestSupport;
import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.file.FileEndpoint;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.spi.Registry;
import
org.apache.camel.support.processor.idempotent.MemoryIdempotentRepository;
@@ -27,6 +31,7 @@ import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
import static org.assertj.core.api.Assertions.assertThat;
+import static org.awaitility.Awaitility.await;
/**
* An idempotent consumer (idempotent=true, or noop=true) with an idempotent
read lock: both use the same idempotent
@@ -45,6 +50,7 @@ class FileIdempotentReadLockIdempotentConsumerTest extends
ContextTestSupport {
protected Registry createCamelRegistry() throws Exception {
Registry jndi = super.createCamelRegistry();
jndi.bind("myRepo", myRepo);
+ jndi.bind("myStrategy", new GenericFileNoOpProcessStrategy<File>());
return jndi;
}
@@ -74,6 +80,8 @@ class FileIdempotentReadLockIdempotentConsumerTest extends
ContextTestSupport {
template.sendBodyAndHeader(fileUri(), "Hello World",
Exchange.FILE_NAME, "hello.txt");
mock.assertIsSatisfied();
+ // the file is moved to .camel when the exchange completes, which can
be after the mock received it
+ await().atMost(10, TimeUnit.SECONDS).untilAsserted(() ->
assertThat(testFile(".camel/hello.txt")).exists());
// a file with the same name is skipped as it was consumed before
mock.reset();
@@ -86,6 +94,18 @@ class FileIdempotentReadLockIdempotentConsumerTest extends
ContextTestSupport {
assertThat(testFile("hello.txt")).exists();
}
+ @ParameterizedTest
+ @ValueSource(booleans = { true, false })
+ void customProcessStrategyKeepsIdempotentEager(boolean idempotentEager) {
+ // the readLock option is not used with a custom process strategy, so
no read lock adds the key
+ FileEndpoint endpoint = context.getEndpoint(
+
fileUri("?noop=true&readLock=idempotent&idempotentRepository=#myRepo&processStrategy=#myStrategy"
+ + "&idempotentEager=" + idempotentEager),
+ FileEndpoint.class);
+
+ assertThat(endpoint.isIdempotentEager()).isEqualTo(idempotentEager);
+ }
+
private void startRoute(String options) throws Exception {
context.addRoutes(new RouteBuilder() {
@Override
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FileEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FileEndpointBuilderFactory.java
index a6e85685ee54..4b569271bdcc 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FileEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FileEndpointBuilderFactory.java
@@ -592,7 +592,10 @@ public interface FileEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option is a: <code>java.lang.Boolean</code> type.
*
@@ -608,7 +611,10 @@ public interface FileEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option will be converted to a <code>java.lang.Boolean</code>
* type.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java
index b1471cdd89c6..b4de7fb288f6 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java
@@ -730,7 +730,10 @@ public interface FilesEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option is a: <code>java.lang.Boolean</code> type.
*
@@ -746,7 +749,10 @@ public interface FilesEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option will be converted to a <code>java.lang.Boolean</code>
* type.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpEndpointBuilderFactory.java
index 4995501af1f9..c412fc5230e4 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpEndpointBuilderFactory.java
@@ -903,7 +903,10 @@ public interface FtpEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option is a: <code>java.lang.Boolean</code> type.
*
@@ -919,7 +922,10 @@ public interface FtpEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option will be converted to a <code>java.lang.Boolean</code>
* type.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpsEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpsEndpointBuilderFactory.java
index 8087dfb3c145..9e4c6220e307 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpsEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpsEndpointBuilderFactory.java
@@ -903,7 +903,10 @@ public interface FtpsEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option is a: <code>java.lang.Boolean</code> type.
*
@@ -919,7 +922,10 @@ public interface FtpsEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option will be converted to a <code>java.lang.Boolean</code>
* type.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MinaSftpEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MinaSftpEndpointBuilderFactory.java
index a64efd8bd6b9..53c8de7d007c 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MinaSftpEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MinaSftpEndpointBuilderFactory.java
@@ -766,7 +766,10 @@ public interface MinaSftpEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option is a: <code>java.lang.Boolean</code> type.
*
@@ -782,7 +785,10 @@ public interface MinaSftpEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option will be converted to a <code>java.lang.Boolean</code>
* type.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SftpEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SftpEndpointBuilderFactory.java
index 83d82318978f..d6ce4a36b31a 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SftpEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SftpEndpointBuilderFactory.java
@@ -799,7 +799,10 @@ public interface SftpEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option is a: <code>java.lang.Boolean</code> type.
*
@@ -815,7 +818,10 @@ public interface SftpEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option will be converted to a <code>java.lang.Boolean</code>
* type.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmbEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmbEndpointBuilderFactory.java
index e37521490e4a..06b1af813713 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmbEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmbEndpointBuilderFactory.java
@@ -695,7 +695,10 @@ public interface SmbEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option is a: <code>java.lang.Boolean</code> type.
*
@@ -711,7 +714,10 @@ public interface SmbEndpointBuilderFactory {
}
/**
* Sets whether to eagerly add the filename to the idempotent
repository
- * or wait until the exchange is complete.
+ * or wait until the exchange is complete. Does not apply with an
+ * idempotent read lock (readLock=idempotent, idempotent-changed or
+ * idempotent-rename), which adds the filename when it acquires the
+ * lock.
*
* The option will be converted to a <code>java.lang.Boolean</code>
* type.