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

org.ehcache.config.xml.model.CacheIntegration Maven / Gradle / Ivy

There is a newer version: 3.10.8
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7-b41 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.08.11 at 11:55:30 AM PDT 
//


package org.ehcache.config.xml.model;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;


/**
 * 

Java class for cache-integration complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="cache-integration">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="loaderwriter" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="class" type="{http://www.ehcache.org/v3}fqcn-type"/>
 *                   <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="writebehind" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="writedelay" minOccurs="0">
 *                     <complexType>
 *                       <simpleContent>
 *                         <extension base="<http://www.w3.org/2001/XMLSchema>string">
 *                           <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
 *                           <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
 *                         </extension>
 *                       </simpleContent>
 *                     </complexType>
 *                   </element>
 *                   <element name="ratelimitpersecond" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
 *                   <element name="batchsize" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" minOccurs="0"/>
 *                   <element name="retryAttempts" minOccurs="0">
 *                     <complexType>
 *                       <simpleContent>
 *                         <extension base="<http://www.w3.org/2001/XMLSchema>nonNegativeInteger">
 *                           <attribute name="delay" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
 *                         </extension>
 *                       </simpleContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *                 <attribute name="concurrency" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
 *                 <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" default="0" />
 *                 <attribute name="coalesce" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="listener" maxOccurs="unbounded" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="class" type="{http://www.ehcache.org/v3}fqcn-type"/>
 *                   <element name="eventFiringMode" type="{http://www.ehcache.org/v3}eventFiring-type"/>
 *                   <element name="eventOrderingMode" type="{http://www.ehcache.org/v3}eventOrdering-type"/>
 *                   <element name="eventsToFireOn" type="{http://www.ehcache.org/v3}event-type" maxOccurs="5"/>
 *                   <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "cache-integration", propOrder = { "loaderwriter", "writebehind", "listener" }) public class CacheIntegration { protected CacheIntegration.Loaderwriter loaderwriter; protected CacheIntegration.Writebehind writebehind; protected List listener; /** * Gets the value of the loaderwriter property. * * @return * possible object is * {@link CacheIntegration.Loaderwriter } * */ public CacheIntegration.Loaderwriter getLoaderwriter() { return loaderwriter; } /** * Sets the value of the loaderwriter property. * * @param value * allowed object is * {@link CacheIntegration.Loaderwriter } * */ public void setLoaderwriter(CacheIntegration.Loaderwriter value) { this.loaderwriter = value; } /** * Gets the value of the writebehind property. * * @return * possible object is * {@link CacheIntegration.Writebehind } * */ public CacheIntegration.Writebehind getWritebehind() { return writebehind; } /** * Sets the value of the writebehind property. * * @param value * allowed object is * {@link CacheIntegration.Writebehind } * */ public void setWritebehind(CacheIntegration.Writebehind value) { this.writebehind = value; } /** * Gets the value of the listener property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the listener property. * *

* For example, to add a new item, do as follows: *

     *    getListener().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CacheIntegration.Listener } * * */ public List getListener() { if (listener == null) { listener = new ArrayList(); } return this.listener; } /** *

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>
     *         <element name="class" type="{http://www.ehcache.org/v3}fqcn-type"/>
     *         <element name="eventFiringMode" type="{http://www.ehcache.org/v3}eventFiring-type"/>
     *         <element name="eventOrderingMode" type="{http://www.ehcache.org/v3}eventOrdering-type"/>
     *         <element name="eventsToFireOn" type="{http://www.ehcache.org/v3}event-type" maxOccurs="5"/>
     *         <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "clazz", "eventFiringMode", "eventOrderingMode", "eventsToFireOn", "any" }) public static class Listener { @XmlElement(name = "class", required = true) protected String clazz; @XmlElement(required = true) protected EventFiringType eventFiringMode; @XmlElement(required = true) protected EventOrderingType eventOrderingMode; @XmlElement(required = true) protected List eventsToFireOn; @XmlAnyElement(lax = true) protected List any; /** * 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. * * @param value * allowed object is * {@link String } * */ public void setClazz(String value) { this.clazz = value; } /** * Gets the value of the eventFiringMode property. * * @return * possible object is * {@link EventFiringType } * */ public EventFiringType getEventFiringMode() { return eventFiringMode; } /** * Sets the value of the eventFiringMode property. * * @param value * allowed object is * {@link EventFiringType } * */ public void setEventFiringMode(EventFiringType value) { this.eventFiringMode = value; } /** * Gets the value of the eventOrderingMode property. * * @return * possible object is * {@link EventOrderingType } * */ public EventOrderingType getEventOrderingMode() { return eventOrderingMode; } /** * Sets the value of the eventOrderingMode property. * * @param value * allowed object is * {@link EventOrderingType } * */ public void setEventOrderingMode(EventOrderingType value) { this.eventOrderingMode = value; } /** * Gets the value of the eventsToFireOn property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the eventsToFireOn property. * *

* For example, to add a new item, do as follows: *

         *    getEventsToFireOn().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link EventType } * * */ public List getEventsToFireOn() { if (eventsToFireOn == null) { eventsToFireOn = new ArrayList(); } return this.eventsToFireOn; } /** * Gets the value of the any property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the any property. * *

* For example, to add a new item, do as follows: *

         *    getAny().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getAny() { if (any == null) { any = new ArrayList(); } return this.any; } } /** *

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>
     *         <element name="class" type="{http://www.ehcache.org/v3}fqcn-type"/>
     *         <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "clazz", "any" }) public static class Loaderwriter { @XmlElement(name = "class", required = true) protected String clazz; @XmlAnyElement(lax = true) protected List any; /** * 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. * * @param value * allowed object is * {@link String } * */ public void setClazz(String value) { this.clazz = value; } /** * Gets the value of the any property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the any property. * *

* For example, to add a new item, do as follows: *

         *    getAny().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getAny() { if (any == null) { any = new ArrayList(); } return this.any; } } /** *

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>
     *         <element name="writedelay" minOccurs="0">
     *           <complexType>
     *             <simpleContent>
     *               <extension base="<http://www.w3.org/2001/XMLSchema>string">
     *                 <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
     *                 <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
     *               </extension>
     *             </simpleContent>
     *           </complexType>
     *         </element>
     *         <element name="ratelimitpersecond" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
     *         <element name="batchsize" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" minOccurs="0"/>
     *         <element name="retryAttempts" minOccurs="0">
     *           <complexType>
     *             <simpleContent>
     *               <extension base="<http://www.w3.org/2001/XMLSchema>nonNegativeInteger">
     *                 <attribute name="delay" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
     *               </extension>
     *             </simpleContent>
     *           </complexType>
     *         </element>
     *       </sequence>
     *       <attribute name="concurrency" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
     *       <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" default="0" />
     *       <attribute name="coalesce" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "writedelay", "ratelimitpersecond", "batchsize", "retryAttempts" }) public static class Writebehind { protected CacheIntegration.Writebehind.Writedelay writedelay; @XmlElement(defaultValue = "0") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger ratelimitpersecond; @XmlElement(defaultValue = "1") @XmlSchemaType(name = "positiveInteger") protected BigInteger batchsize; @XmlElement(defaultValue = "0") protected CacheIntegration.Writebehind.RetryAttempts retryAttempts; @XmlAttribute(name = "concurrency") @XmlSchemaType(name = "positiveInteger") protected BigInteger concurrency; @XmlAttribute(name = "size") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger size; @XmlAttribute(name = "coalesce") protected Boolean coalesce; /** * Gets the value of the writedelay property. * * @return * possible object is * {@link CacheIntegration.Writebehind.Writedelay } * */ public CacheIntegration.Writebehind.Writedelay getWritedelay() { return writedelay; } /** * Sets the value of the writedelay property. * * @param value * allowed object is * {@link CacheIntegration.Writebehind.Writedelay } * */ public void setWritedelay(CacheIntegration.Writebehind.Writedelay value) { this.writedelay = value; } /** * Gets the value of the ratelimitpersecond property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getRatelimitpersecond() { return ratelimitpersecond; } /** * Sets the value of the ratelimitpersecond property. * * @param value * allowed object is * {@link BigInteger } * */ public void setRatelimitpersecond(BigInteger value) { this.ratelimitpersecond = value; } /** * 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. * * @param value * allowed object is * {@link BigInteger } * */ public void setBatchsize(BigInteger value) { this.batchsize = value; } /** * Gets the value of the retryAttempts property. * * @return * possible object is * {@link CacheIntegration.Writebehind.RetryAttempts } * */ public CacheIntegration.Writebehind.RetryAttempts getRetryAttempts() { return retryAttempts; } /** * Sets the value of the retryAttempts property. * * @param value * allowed object is * {@link CacheIntegration.Writebehind.RetryAttempts } * */ public void setRetryAttempts(CacheIntegration.Writebehind.RetryAttempts value) { this.retryAttempts = value; } /** * 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. * * @param value * allowed object is * {@link BigInteger } * */ public void setConcurrency(BigInteger value) { this.concurrency = value; } /** * Gets the value of the size property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getSize() { if (size == null) { return new BigInteger("0"); } else { return size; } } /** * 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 coalesce property. * * @return * possible object is * {@link Boolean } * */ public Boolean isCoalesce() { return coalesce; } /** * Sets the value of the coalesce property. * * @param value * allowed object is * {@link Boolean } * */ public void setCoalesce(Boolean value) { this.coalesce = value; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

         * <complexType>
         *   <simpleContent>
         *     <extension base="<http://www.w3.org/2001/XMLSchema>nonNegativeInteger">
         *       <attribute name="delay" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
         *     </extension>
         *   </simpleContent>
         * </complexType>
         * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) public static class RetryAttempts { @XmlValue @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger value; @XmlAttribute(name = "delay") @XmlSchemaType(name = "positiveInteger") protected BigInteger delay; /** * Gets the value of the value property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link BigInteger } * */ public void setValue(BigInteger value) { this.value = value; } /** * Gets the value of the delay property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getDelay() { if (delay == null) { return new BigInteger("1"); } else { return delay; } } /** * Sets the value of the delay property. * * @param value * allowed object is * {@link BigInteger } * */ public void setDelay(BigInteger value) { this.delay = value; } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

         * <complexType>
         *   <simpleContent>
         *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
         *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
         *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
         *     </extension>
         *   </simpleContent>
         * </complexType>
         * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) public static class Writedelay { @XmlValue protected String value; @XmlAttribute(name = "min") @XmlSchemaType(name = "positiveInteger") protected BigInteger min; @XmlAttribute(name = "max") @XmlSchemaType(name = "positiveInteger") protected BigInteger max; /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } /** * Gets the value of the min property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getMin() { if (min == null) { return new BigInteger("1"); } else { return min; } } /** * Sets the value of the min property. * * @param value * allowed object is * {@link BigInteger } * */ public void setMin(BigInteger value) { this.min = value; } /** * Gets the value of the max property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getMax() { if (max == null) { return new BigInteger("1"); } else { return max; } } /** * Sets the value of the max property. * * @param value * allowed object is * {@link BigInteger } * */ public void setMax(BigInteger value) { this.max = value; } } } }