com.alachisoft.integrations.spring.configuration.SpringCacheConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ncache.spring Show documentation
Show all versions of ncache.spring Show documentation
NCache Spring integration.
/*
* 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;
}
}