CAMEL-8387: File endpoint should validate the read lock timeout/interval options is configured correctly.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d5b59640 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d5b59640 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d5b59640 Branch: refs/heads/master Commit: d5b596403347bd65523e30e1a9fe65b6fefb38b1 Parents: 4661cbb Author: Claus Ibsen <davscl...@apache.org> Authored: Sun Feb 22 16:13:07 2015 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sun Feb 22 16:13:07 2015 +0100 ---------------------------------------------------------------------- .../org/apache/camel/component/file/GenericFileEndpoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/d5b59640/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java b/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java index 7cc8cd2..3eb1b53 100644 --- a/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java +++ b/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java @@ -1285,8 +1285,8 @@ public abstract class GenericFileEndpoint<T> extends ScheduledPollEndpoint imple if (readLockTimeout > 0 && readLockTimeout <= readLockCheckInterval) { throw new IllegalArgumentException("The option readLockTimeout must be higher than readLockCheckInterval" + ", was readLockTimeout=" + readLockTimeout + ", readLockCheckInterval=" + readLockCheckInterval - + ". A good practice is to let the readLockTimeout be at least 3 or more times higher than the readLockCheckInterval" + - ", to ensure the read lock procedure has amble times to run several times checks during acquiring the lock."); + + ". A good practice is to let the readLockTimeout be at least 3 or more times higher than the readLockCheckInterval" + + ", to ensure the read lock procedure has amble times to run several times checks during acquiring the lock."); } }