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

com.alachisoft.ncache.web.config.dom.Locking Maven / Gradle / Ivy

The newest version!
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.alachisoft.ncache.web.config.dom;

import Alachisoft.NCache.Common.Configuration.ConfigurationAttributeAnnotation;
import java.io.Serializable;

/**
 *
 * @author huma_kauser
 */
public class Locking implements Serializable {

    private boolean _enableLocking;
    private int _retryCount;
    private int _retryInterval;
    private int _lockTimeout;

    @ConfigurationAttributeAnnotation(value = "enable-session-locking", appendText = "")
    public final boolean getEnableLocking() {
        return _enableLocking;
    }

    @ConfigurationAttributeAnnotation(value = "enable-session-locking", appendText = "")
    public final void setEnableLocking(boolean value) {
        _enableLocking = value;
    }

    @ConfigurationAttributeAnnotation(value = "retries-count", appendText = "")
    public final int getRetriesCount() {
        return _retryCount;
    }

    @ConfigurationAttributeAnnotation(value = "retries-count", appendText = "")
    public final void setRetriesCount(int value) {
        _retryCount = value;
    }

    @ConfigurationAttributeAnnotation(value = "retry-interval", appendText = "ms")
    public final int getRetryInterval() {
        return _retryInterval;
    }

    @ConfigurationAttributeAnnotation(value = "retry-interval", appendText = "ms")
    public final void setRetryInterval(int value) {
        _retryInterval = value;
    }

    @ConfigurationAttributeAnnotation(value = "lock-timeout", appendText = "ms")
    public final int getLockTimeout() {
        return _lockTimeout;
    }

    @ConfigurationAttributeAnnotation(value = "lock-timeout", appendText = "ms")
    public final void setLockTimeout(int value) {
        _lockTimeout = value;
    }

    @ConfigurationAttributeAnnotation(value = "empty-session-when-locked", appendText = "")
    public final boolean getEmptySessions() {
        return _enableLocking;
    }

    @ConfigurationAttributeAnnotation(value = "empty-session-when-locked", appendText = "")
    public final void setEmptySessions(boolean value) {
        _enableLocking = value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy