This project has retired. For details please refer to its Attic page.
Source code
001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 1.7,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.apache.archiva.configuration;
007
008/**
009 * File Locking configuration.
010 * 
011 * @version $Revision$ $Date$
012 */
013@SuppressWarnings( "all" )
014public class FileLockConfiguration
015    implements java.io.Serializable
016{
017
018      //--------------------------/
019     //- Class/Member Variables -/
020    //--------------------------/
021
022    /**
023     * skipping the locking mechanism.
024     */
025    private boolean skipLocking = true;
026
027    /**
028     * maximum time to wait to get the file lock (0 infinite).
029     */
030    private int lockingTimeout = 0;
031
032
033      //-----------/
034     //- Methods -/
035    //-----------/
036
037    /**
038     * Get maximum time to wait to get the file lock (0 infinite).
039     * 
040     * @return int
041     */
042    public int getLockingTimeout()
043    {
044        return this.lockingTimeout;
045    } //-- int getLockingTimeout()
046
047    /**
048     * Get skipping the locking mechanism.
049     * 
050     * @return boolean
051     */
052    public boolean isSkipLocking()
053    {
054        return this.skipLocking;
055    } //-- boolean isSkipLocking()
056
057    /**
058     * Set maximum time to wait to get the file lock (0 infinite).
059     * 
060     * @param lockingTimeout
061     */
062    public void setLockingTimeout( int lockingTimeout )
063    {
064        this.lockingTimeout = lockingTimeout;
065    } //-- void setLockingTimeout( int )
066
067    /**
068     * Set skipping the locking mechanism.
069     * 
070     * @param skipLocking
071     */
072    public void setSkipLocking( boolean skipLocking )
073    {
074        this.skipLocking = skipLocking;
075    } //-- void setSkipLocking( boolean )
076
077}