package org.ehcache.xml.model;
import java.math.BigInteger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
Java class for disk-store-settings-type complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="disk-store-settings-type">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="thread-pool" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="writer-concurrency" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
<attribute name="disk-segments" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="16" />
</restriction>
</complexContent>
</complexType>
/**
* <p>Java class for disk-store-settings-type complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="disk-store-settings-type">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="thread-pool" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="writer-concurrency" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
* <attribute name="disk-segments" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="16" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "disk-store-settings-type")
public class DiskStoreSettingsType {
@XmlAttribute(name = "thread-pool")
protected String threadPool;
@XmlAttribute(name = "writer-concurrency")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger writerConcurrency;
@XmlAttribute(name = "disk-segments")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger diskSegments;
Gets the value of the threadPool property.
Returns: possible object is String
/**
* Gets the value of the threadPool property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getThreadPool() {
return threadPool;
}
Sets the value of the threadPool property.
Params: - value – allowed object is
String
/**
* Sets the value of the threadPool property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setThreadPool(String value) {
this.threadPool = value;
}
Gets the value of the writerConcurrency property.
Returns: possible object is BigInteger
/**
* Gets the value of the writerConcurrency property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getWriterConcurrency() {
if (writerConcurrency == null) {
return new BigInteger("1");
} else {
return writerConcurrency;
}
}
Sets the value of the writerConcurrency property.
Params: - value – allowed object is
BigInteger
/**
* Sets the value of the writerConcurrency property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setWriterConcurrency(BigInteger value) {
this.writerConcurrency = value;
}
Gets the value of the diskSegments property.
Returns: possible object is BigInteger
/**
* Gets the value of the diskSegments property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getDiskSegments() {
if (diskSegments == null) {
return new BigInteger("16");
} else {
return diskSegments;
}
}
Sets the value of the diskSegments property.
Params: - value – allowed object is
BigInteger
/**
* Sets the value of the diskSegments property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setDiskSegments(BigInteger value) {
this.diskSegments = value;
}
public DiskStoreSettingsType withThreadPool(String value) {
setThreadPool(value);
return this;
}
public DiskStoreSettingsType withWriterConcurrency(BigInteger value) {
setWriterConcurrency(value);
return this;
}
public DiskStoreSettingsType withDiskSegments(BigInteger value) {
setDiskSegments(value);
return this;
}
}