org.ehcache.config.xml.model
Class CacheIntegration

java.lang.Object
  extended by org.ehcache.config.xml.model.CacheIntegration

public class CacheIntegration
extends java.lang.Object

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="retry" minOccurs="0">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <attribute name="attempts" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
                           <attribute name="delay" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
                         </restriction>
                       </complexContent>
                     </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}positiveInteger" default="2147483647" />
                 <attribute name="coalesce" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
                 <attribute name="ratelimitpersecond" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="2147483647" />
                 <attribute name="minWriteDelay" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" default="0" />
                 <attribute name="maxWriteDelay" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="2147483647" />
                 <attribute name="batchsize" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
               </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>
 


Nested Class Summary
static class CacheIntegration.Listener
          Java class for anonymous complex type.
static class CacheIntegration.Loaderwriter
          Java class for anonymous complex type.
static class CacheIntegration.Writebehind
          Java class for anonymous complex type.
 
Field Summary
protected  java.util.List<CacheIntegration.Listener> listener
           
protected  CacheIntegration.Loaderwriter loaderwriter
           
protected  CacheIntegration.Writebehind writebehind
           
 
Constructor Summary
CacheIntegration()
           
 
Method Summary
 java.util.List<CacheIntegration.Listener> getListener()
          Gets the value of the listener property.
 CacheIntegration.Loaderwriter getLoaderwriter()
          Gets the value of the loaderwriter property.
 CacheIntegration.Writebehind getWritebehind()
          Gets the value of the writebehind property.
 void setLoaderwriter(CacheIntegration.Loaderwriter value)
          Sets the value of the loaderwriter property.
 void setWritebehind(CacheIntegration.Writebehind value)
          Sets the value of the writebehind property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loaderwriter

protected CacheIntegration.Loaderwriter loaderwriter

writebehind

protected CacheIntegration.Writebehind writebehind

listener

protected java.util.List<CacheIntegration.Listener> listener
Constructor Detail

CacheIntegration

public CacheIntegration()
Method Detail

getLoaderwriter

public CacheIntegration.Loaderwriter getLoaderwriter()
Gets the value of the loaderwriter property.

Returns:
possible object is CacheIntegration.Loaderwriter

setLoaderwriter

public void setLoaderwriter(CacheIntegration.Loaderwriter value)
Sets the value of the loaderwriter property.

Parameters:
value - allowed object is CacheIntegration.Loaderwriter

getWritebehind

public CacheIntegration.Writebehind getWritebehind()
Gets the value of the writebehind property.

Returns:
possible object is CacheIntegration.Writebehind

setWritebehind

public void setWritebehind(CacheIntegration.Writebehind value)
Sets the value of the writebehind property.

Parameters:
value - allowed object is CacheIntegration.Writebehind

getListener

public java.util.List<CacheIntegration.Listener> getListener()
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 CacheIntegration.Listener