diff options
author | Olivier Lamy <olamy@apache.org> | 2013-12-13 04:46:12 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-12-13 04:46:12 +0000 |
commit | c3ba717d4cd6aa3c3825fb845a4650ca0d67f37e (patch) | |
tree | 8c512073bee96b6ecff3107c20419515fdc20450 /archiva-modules/archiva-base/archiva-filelock | |
parent | 94db08374c2d01652cd12084b2222cc174197f0d (diff) | |
download | archiva-c3ba717d4cd6aa3c3825fb845a4650ca0d67f37e.tar.gz archiva-c3ba717d4cd6aa3c3825fb845a4650ca0d67f37e.zip |
expose how to skip locking mechanism
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550635 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-filelock')
2 files changed, 12 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java b/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java index 08f01488a..812ffe9a1 100644 --- a/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java +++ b/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java @@ -186,5 +186,13 @@ public class DefaultFileLockManager this.timeout = timeout; } + public boolean isSkipLocking() + { + return skipLocking; + } + public void setSkipLocking( boolean skipLocking ) + { + this.skipLocking = skipLocking; + } } diff --git a/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/FileLockManager.java b/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/FileLockManager.java index 6746f4e3b..bf18292ae 100644 --- a/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/FileLockManager.java +++ b/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/FileLockManager.java @@ -39,4 +39,8 @@ public interface FileLockManager int getTimeout(); void setTimeout( int timeout ); + + boolean isSkipLocking(); + + void setSkipLocking( boolean skipLocking); } |