All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.archiva.configuration.FileLockConfiguration Maven / Gradle / Ivy

The newest version!
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 1.7,
// any modifications will be overwritten.
// ==============================================================

package org.apache.archiva.configuration;

/**
 * File Locking configuration.
 * 
 * @version $Revision$ $Date$
 */
@SuppressWarnings( "all" )
public class FileLockConfiguration
    implements java.io.Serializable
{

      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * skipping the locking mechanism.
     */
    private boolean skipLocking = true;

    /**
     * maximum time to wait to get the file lock (0 infinite).
     */
    private int lockingTimeout = 0;


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Get maximum time to wait to get the file lock (0 infinite).
     * 
     * @return int
     */
    public int getLockingTimeout()
    {
        return this.lockingTimeout;
    } //-- int getLockingTimeout()

    /**
     * Get skipping the locking mechanism.
     * 
     * @return boolean
     */
    public boolean isSkipLocking()
    {
        return this.skipLocking;
    } //-- boolean isSkipLocking()

    /**
     * Set maximum time to wait to get the file lock (0 infinite).
     * 
     * @param lockingTimeout
     */
    public void setLockingTimeout( int lockingTimeout )
    {
        this.lockingTimeout = lockingTimeout;
    } //-- void setLockingTimeout( int )

    /**
     * Set skipping the locking mechanism.
     * 
     * @param skipLocking
     */
    public void setSkipLocking( boolean skipLocking )
    {
        this.skipLocking = skipLocking;
    } //-- void setSkipLocking( boolean )

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy