1 // =================== DO NOT EDIT THIS FILE ====================
2 // Generated by Modello 1.7,
3 // any modifications will be overwritten.
4 // ==============================================================
5
6 package org.apache.archiva.configuration;
7
8 /**
9 * File Locking configuration.
10 *
11 * @version $Revision$ $Date$
12 */
13 @SuppressWarnings( "all" )
14 public class FileLockConfiguration
15 implements java.io.Serializable
16 {
17
18 //--------------------------/
19 //- Class/Member Variables -/
20 //--------------------------/
21
22 /**
23 * skipping the locking mechanism.
24 */
25 private boolean skipLocking = true;
26
27 /**
28 * maximum time to wait to get the file lock (0 infinite).
29 */
30 private int lockingTimeout = 0;
31
32
33 //-----------/
34 //- Methods -/
35 //-----------/
36
37 /**
38 * Get maximum time to wait to get the file lock (0 infinite).
39 *
40 * @return int
41 */
42 public int getLockingTimeout()
43 {
44 return this.lockingTimeout;
45 } //-- int getLockingTimeout()
46
47 /**
48 * Get skipping the locking mechanism.
49 *
50 * @return boolean
51 */
52 public boolean isSkipLocking()
53 {
54 return this.skipLocking;
55 } //-- boolean isSkipLocking()
56
57 /**
58 * Set maximum time to wait to get the file lock (0 infinite).
59 *
60 * @param lockingTimeout
61 */
62 public void setLockingTimeout( int lockingTimeout )
63 {
64 this.lockingTimeout = lockingTimeout;
65 } //-- void setLockingTimeout( int )
66
67 /**
68 * Set skipping the locking mechanism.
69 *
70 * @param skipLocking
71 */
72 public void setSkipLocking( boolean skipLocking )
73 {
74 this.skipLocking = skipLocking;
75 } //-- void setSkipLocking( boolean )
76
77 }