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

com.alachisoft.integrations.spring.configuration.SpringCacheConfiguration Maven / Gradle / Ivy

There is a newer version: 5.2-alpha-23
Show newest version
/*
 * Alachisoft (R) NCache Integrations
 * NCache Provider for Spring
 * ===============================================================================
 * Copyright © Alachisoft.  All rights reserved.
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
 * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
 * LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE.
 * ===============================================================================
 */
package com.alachisoft.integrations.spring.configuration;

import Alachisoft.NCache.Common.Configuration.ConfigurationAttributeAnnotation;
import com.alachisoft.ncache.runtime.CacheItemPriority;

public class SpringCacheConfiguration {

    private String springCacheName;
    private String cacheidInstance;
    private String priority = "Default";
    private String expirationType = "none";
    private int expirationPeriod = 0;
    private CacheItemPriority cItemPriority;

    public SpringCacheConfiguration() {
    }

    @ConfigurationAttributeAnnotation(value = "name", appendText = "")
    public String getSpringCacheName() {
        return springCacheName;
    }

    @ConfigurationAttributeAnnotation(value = "name", appendText = "")
    public void setSpringCacheName(String value) {
        springCacheName = value;
    }

    @ConfigurationAttributeAnnotation(value = "ncacheid-instance", appendText = "")
    public String getCacheidInstanceName() {
        return cacheidInstance;
    }

    @ConfigurationAttributeAnnotation(value = "ncacheid-instance", appendText = "")
    public void setCacheidInstanceName(String value) {
        cacheidInstance = value;
    }

    @ConfigurationAttributeAnnotation(value = "priority", appendText = "")
    public String getPriority() {
        return priority;
    }

    @ConfigurationAttributeAnnotation(value = "priority", appendText = "")
    public void setPriority(String value) {
        priority = value;
    }

    @ConfigurationAttributeAnnotation(value = "expiration-type", appendText = "")
    public String getExpirationType() {
        return expirationType;
    }

    @ConfigurationAttributeAnnotation(value = "expiration-type", appendText = "")
    public void setExpirationType(String value) {
        expirationType = value;
    }

    @ConfigurationAttributeAnnotation(value = "expiration-period", appendText = "")
    public int getExpirationPeriod() {
        return expirationPeriod;
    }

    @ConfigurationAttributeAnnotation(value = "expiration-period", appendText = "")
    public void setExpirationPeriod(int value) {
        expirationPeriod = value;
    }

    public CacheItemPriority getCacheItemPriority() {
        return cItemPriority;
    }

    public void setCacheItemPriority(CacheItemPriority value) {
        cItemPriority = value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy