001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.wls;
017:
018: import java.math.BigInteger;
019: import javax.xml.bind.annotation.XmlAccessType;
020: import javax.xml.bind.annotation.XmlAccessorType;
021: import javax.xml.bind.annotation.XmlAttribute;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlID;
024: import javax.xml.bind.annotation.XmlType;
025: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
026: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
027:
028: /**
029: * <p>Java class for stateful-session-cache complex type.
030: *
031: * <p>The following schema fragment specifies the expected content contained within this class.
032: *
033: * <pre>
034: * <complexType name="stateful-session-cache">
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element name="max-beans-in-cache" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
039: * <element name="idle-timeout-seconds" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
040: * <element name="session-timeout-seconds" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
041: * <element name="cache-type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
042: * </sequence>
043: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
044: * </restriction>
045: * </complexContent>
046: * </complexType>
047: * </pre>
048: *
049: *
050: */
051: @XmlAccessorType(XmlAccessType.FIELD)
052: @XmlType(name="stateful-session-cache",propOrder={"maxBeansInCache","idleTimeoutSeconds","sessionTimeoutSeconds","cacheType"})
053: public class StatefulSessionCache {
054:
055: @XmlElement(name="max-beans-in-cache")
056: protected BigInteger maxBeansInCache;
057: @XmlElement(name="idle-timeout-seconds")
058: protected BigInteger idleTimeoutSeconds;
059: @XmlElement(name="session-timeout-seconds")
060: protected BigInteger sessionTimeoutSeconds;
061: @XmlElement(name="cache-type")
062: protected String cacheType;
063: @XmlAttribute
064: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
065: @XmlID
066: protected String id;
067:
068: /**
069: * Gets the value of the maxBeansInCache property.
070: *
071: * @return
072: * possible object is
073: * {@link BigInteger }
074: *
075: */
076: public BigInteger getMaxBeansInCache() {
077: return maxBeansInCache;
078: }
079:
080: /**
081: * Sets the value of the maxBeansInCache property.
082: *
083: * @param value
084: * allowed object is
085: * {@link BigInteger }
086: *
087: */
088: public void setMaxBeansInCache(BigInteger value) {
089: this .maxBeansInCache = value;
090: }
091:
092: /**
093: * Gets the value of the idleTimeoutSeconds property.
094: *
095: * @return
096: * possible object is
097: * {@link BigInteger }
098: *
099: */
100: public BigInteger getIdleTimeoutSeconds() {
101: return idleTimeoutSeconds;
102: }
103:
104: /**
105: * Sets the value of the idleTimeoutSeconds property.
106: *
107: * @param value
108: * allowed object is
109: * {@link BigInteger }
110: *
111: */
112: public void setIdleTimeoutSeconds(BigInteger value) {
113: this .idleTimeoutSeconds = value;
114: }
115:
116: /**
117: * Gets the value of the sessionTimeoutSeconds property.
118: *
119: * @return
120: * possible object is
121: * {@link BigInteger }
122: *
123: */
124: public BigInteger getSessionTimeoutSeconds() {
125: return sessionTimeoutSeconds;
126: }
127:
128: /**
129: * Sets the value of the sessionTimeoutSeconds property.
130: *
131: * @param value
132: * allowed object is
133: * {@link BigInteger }
134: *
135: */
136: public void setSessionTimeoutSeconds(BigInteger value) {
137: this .sessionTimeoutSeconds = value;
138: }
139:
140: /**
141: * Gets the value of the cacheType property.
142: *
143: * @return
144: * possible object is
145: * {@link String }
146: *
147: */
148: public String getCacheType() {
149: return cacheType;
150: }
151:
152: /**
153: * Sets the value of the cacheType property.
154: *
155: * @param value
156: * allowed object is
157: * {@link String }
158: *
159: */
160: public void setCacheType(String value) {
161: this .cacheType = value;
162: }
163:
164: /**
165: * Gets the value of the id property.
166: *
167: * @return
168: * possible object is
169: * {@link String }
170: *
171: */
172: public String getId() {
173: return id;
174: }
175:
176: /**
177: * Sets the value of the id property.
178: *
179: * @param value
180: * allowed object is
181: * {@link String }
182: *
183: */
184: public void setId(String value) {
185: this.id = value;
186: }
187:
188: }
|