This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 32bdb4e66bd8db0587bd60b463ba4280181ab6fb Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Thu Jan 5 09:42:41 2023 +0100 (chores) camel-file: removed unused exceptions --- .../file/strategy/MarkerFileExclusiveReadLockStrategy.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java b/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java index 4e3e638ffab..d25da76b3dd 100644 --- a/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java +++ b/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java @@ -111,8 +111,18 @@ public class MarkerFileExclusiveReadLockStrategy implements GenericFileExclusive doReleaseExclusiveReadLock(file, exchange); } - protected void doReleaseExclusiveReadLock(GenericFile<File> file, Exchange exchange) - throws Exception { + /** + * Perform the releases of the exclusive read lock granted by the <tt>acquireExclusiveReadLock</tt> method due a + * commit operation. + * + * @param file the file + * @param exchange the exchange + * @throws Exception can be thrown in case of errors + * @see #releaseExclusiveReadLockOnCommit(GenericFileOperations, GenericFile, Exchange) + * @see #releaseExclusiveReadLockOnRollback(GenericFileOperations, GenericFile, Exchange) + * @see #releaseExclusiveReadLockOnAbort(GenericFileOperations, GenericFile, Exchange) + */ + protected void doReleaseExclusiveReadLock(GenericFile<File> file, Exchange exchange) throws Exception { if (!markerFile) { // if not using marker file then nothing to release return;
