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.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
Java class for cache-loader-writer-type complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="cache-loader-writer-type">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="class" type="{http://www.ehcache.org/v3}fqcn-type"/>
<element name="write-behind" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<choice>
<element name="batching">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<all>
<element name="max-write-delay" type="{http://www.ehcache.org/v3}time-type"/>
</all>
<attribute name="batch-size" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
<attribute name="coalesce" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
</restriction>
</complexContent>
</complexType>
</element>
<element name="non-batching">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
</restriction>
</complexContent>
</complexType>
</element>
</choice>
</sequence>
<attribute name="concurrency" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
<attribute name="size" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="2147483647" />
<attribute name="thread-pool" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
/**
* <p>Java class for cache-loader-writer-type complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="cache-loader-writer-type">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="class" type="{http://www.ehcache.org/v3}fqcn-type"/>
* <element name="write-behind" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice>
* <element name="batching">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="max-write-delay" type="{http://www.ehcache.org/v3}time-type"/>
* </all>
* <attribute name="batch-size" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
* <attribute name="coalesce" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="non-batching">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </choice>
* </sequence>
* <attribute name="concurrency" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
* <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="2147483647" />
* <attribute name="thread-pool" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cache-loader-writer-type", propOrder = {
"clazz",
"writeBehind"
})
public class CacheLoaderWriterType {
@XmlElement(name = "class", required = true)
protected String clazz;
@XmlElement(name = "write-behind")
protected CacheLoaderWriterType.WriteBehind writeBehind;
Gets the value of the clazz property.
Returns: possible object is String
/**
* Gets the value of the clazz property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getClazz() {
return clazz;
}
Sets the value of the clazz property.
Params: - value – allowed object is
String
/**
* Sets the value of the clazz property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setClazz(String value) {
this.clazz = value;
}
Gets the value of the writeBehind property.
Returns: possible object is WriteBehind
/**
* Gets the value of the writeBehind property.
*
* @return
* possible object is
* {@link CacheLoaderWriterType.WriteBehind }
*
*/
public CacheLoaderWriterType.WriteBehind getWriteBehind() {
return writeBehind;
}
Sets the value of the writeBehind property.
Params: - value – allowed object is
WriteBehind
/**
* Sets the value of the writeBehind property.
*
* @param value
* allowed object is
* {@link CacheLoaderWriterType.WriteBehind }
*
*/
public void setWriteBehind(CacheLoaderWriterType.WriteBehind value) {
this.writeBehind = value;
}
public CacheLoaderWriterType withClazz(String value) {
setClazz(value);
return this;
}
public CacheLoaderWriterType withWriteBehind(CacheLoaderWriterType.WriteBehind value) {
setWriteBehind(value);
return this;
}
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<choice>
<element name="batching">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<all>
<element name="max-write-delay" type="{http://www.ehcache.org/v3}time-type"/>
</all>
<attribute name="batch-size" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
<attribute name="coalesce" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
</restriction>
</complexContent>
</complexType>
</element>
<element name="non-batching">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
</restriction>
</complexContent>
</complexType>
</element>
</choice>
</sequence>
<attribute name="concurrency" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
<attribute name="size" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="2147483647" />
<attribute name="thread-pool" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice>
* <element name="batching">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="max-write-delay" type="{http://www.ehcache.org/v3}time-type"/>
* </all>
* <attribute name="batch-size" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
* <attribute name="coalesce" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="non-batching">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </choice>
* </sequence>
* <attribute name="concurrency" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
* <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="2147483647" />
* <attribute name="thread-pool" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"batching",
"nonBatching"
})
public static class WriteBehind {
protected CacheLoaderWriterType.WriteBehind.Batching batching;
@XmlElement(name = "non-batching")
protected CacheLoaderWriterType.WriteBehind.NonBatching nonBatching;
@XmlAttribute(name = "concurrency")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger concurrency;
@XmlAttribute(name = "size")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger size;
@XmlAttribute(name = "thread-pool")
protected String threadPool;
Gets the value of the batching property.
Returns: possible object is Batching
/**
* Gets the value of the batching property.
*
* @return
* possible object is
* {@link CacheLoaderWriterType.WriteBehind.Batching }
*
*/
public CacheLoaderWriterType.WriteBehind.Batching getBatching() {
return batching;
}
Sets the value of the batching property.
Params: - value – allowed object is
Batching
/**
* Sets the value of the batching property.
*
* @param value
* allowed object is
* {@link CacheLoaderWriterType.WriteBehind.Batching }
*
*/
public void setBatching(CacheLoaderWriterType.WriteBehind.Batching value) {
this.batching = value;
}
Gets the value of the nonBatching property.
Returns: possible object is NonBatching
/**
* Gets the value of the nonBatching property.
*
* @return
* possible object is
* {@link CacheLoaderWriterType.WriteBehind.NonBatching }
*
*/
public CacheLoaderWriterType.WriteBehind.NonBatching getNonBatching() {
return nonBatching;
}
Sets the value of the nonBatching property.
Params: - value – allowed object is
NonBatching
/**
* Sets the value of the nonBatching property.
*
* @param value
* allowed object is
* {@link CacheLoaderWriterType.WriteBehind.NonBatching }
*
*/
public void setNonBatching(CacheLoaderWriterType.WriteBehind.NonBatching value) {
this.nonBatching = value;
}
Gets the value of the concurrency property.
Returns: possible object is BigInteger
/**
* Gets the value of the concurrency property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getConcurrency() {
if (concurrency == null) {
return new BigInteger("1");
} else {
return concurrency;
}
}
Sets the value of the concurrency property.
Params: - value – allowed object is
BigInteger
/**
* Sets the value of the concurrency property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setConcurrency(BigInteger value) {
this.concurrency = value;
}
Gets the value of the size property.
Returns: possible object is BigInteger
/**
* Gets the value of the size property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getSize() {
if (size == null) {
return new BigInteger("2147483647");
} else {
return size;
}
}
Sets the value of the size property.
Params: - value – allowed object is
BigInteger
/**
* Sets the value of the size property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setSize(BigInteger value) {
this.size = value;
}
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;
}
public CacheLoaderWriterType.WriteBehind withBatching(CacheLoaderWriterType.WriteBehind.Batching value) {
setBatching(value);
return this;
}
public CacheLoaderWriterType.WriteBehind withNonBatching(CacheLoaderWriterType.WriteBehind.NonBatching value) {
setNonBatching(value);
return this;
}
public CacheLoaderWriterType.WriteBehind withConcurrency(BigInteger value) {
setConcurrency(value);
return this;
}
public CacheLoaderWriterType.WriteBehind withSize(BigInteger value) {
setSize(value);
return this;
}
public CacheLoaderWriterType.WriteBehind withThreadPool(String value) {
setThreadPool(value);
return this;
}
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<all>
<element name="max-write-delay" type="{http://www.ehcache.org/v3}time-type"/>
</all>
<attribute name="batch-size" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
<attribute name="coalesce" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
</restriction>
</complexContent>
</complexType>
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="max-write-delay" type="{http://www.ehcache.org/v3}time-type"/>
* </all>
* <attribute name="batch-size" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
* <attribute name="coalesce" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
})
public static class Batching {
@XmlElement(name = "max-write-delay", required = true)
protected TimeType maxWriteDelay;
@XmlAttribute(name = "batch-size", required = true)
@XmlSchemaType(name = "positiveInteger")
protected BigInteger batchSize;
@XmlAttribute(name = "coalesce")
protected Boolean coalesce;
Gets the value of the maxWriteDelay property.
Returns: possible object is TimeType
/**
* Gets the value of the maxWriteDelay property.
*
* @return
* possible object is
* {@link TimeType }
*
*/
public TimeType getMaxWriteDelay() {
return maxWriteDelay;
}
Sets the value of the maxWriteDelay property.
Params: - value – allowed object is
TimeType
/**
* Sets the value of the maxWriteDelay property.
*
* @param value
* allowed object is
* {@link TimeType }
*
*/
public void setMaxWriteDelay(TimeType value) {
this.maxWriteDelay = value;
}
Gets the value of the batchSize property.
Returns: possible object is BigInteger
/**
* Gets the value of the batchSize property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getBatchSize() {
return batchSize;
}
Sets the value of the batchSize property.
Params: - value – allowed object is
BigInteger
/**
* Sets the value of the batchSize property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setBatchSize(BigInteger value) {
this.batchSize = value;
}
Gets the value of the coalesce property.
Returns: possible object is Boolean
/**
* Gets the value of the coalesce property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isCoalesce() {
if (coalesce == null) {
return false;
} else {
return coalesce;
}
}
Sets the value of the coalesce property.
Params: - value – allowed object is
Boolean
/**
* Sets the value of the coalesce property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setCoalesce(Boolean value) {
this.coalesce = value;
}
public CacheLoaderWriterType.WriteBehind.Batching withMaxWriteDelay(TimeType value) {
setMaxWriteDelay(value);
return this;
}
public CacheLoaderWriterType.WriteBehind.Batching withBatchSize(BigInteger value) {
setBatchSize(value);
return this;
}
public CacheLoaderWriterType.WriteBehind.Batching withCoalesce(Boolean value) {
setCoalesce(value);
return this;
}
}
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
</restriction>
</complexContent>
</complexType>
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class NonBatching {
}
}
}