01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.openejb.jee.sun;
17:
18: import javax.xml.bind.annotation.XmlAccessType;
19: import javax.xml.bind.annotation.XmlAccessorType;
20: import javax.xml.bind.annotation.XmlElement;
21: import javax.xml.bind.annotation.XmlType;
22:
23: @XmlAccessorType(XmlAccessType.FIELD)
24: @XmlType(name="",propOrder={"maxCacheSize","resizeQuantity","isCacheOverflowAllowed","cacheIdleTimeoutInSeconds","removalTimeoutInSeconds","victimSelectionPolicy"})
25: public class BeanCache {
26: @XmlElement(name="max-cache-size")
27: protected String maxCacheSize;
28: @XmlElement(name="resize-quantity")
29: protected String resizeQuantity;
30: @XmlElement(name="is-cache-overflow-allowed")
31: protected String isCacheOverflowAllowed;
32: @XmlElement(name="cache-idle-timeout-in-seconds")
33: protected String cacheIdleTimeoutInSeconds;
34: @XmlElement(name="removal-timeout-in-seconds")
35: protected String removalTimeoutInSeconds;
36: @XmlElement(name="victim-selection-policy")
37: protected String victimSelectionPolicy;
38:
39: public String getMaxCacheSize() {
40: return maxCacheSize;
41: }
42:
43: public void setMaxCacheSize(String value) {
44: this .maxCacheSize = value;
45: }
46:
47: public String getResizeQuantity() {
48: return resizeQuantity;
49: }
50:
51: public void setResizeQuantity(String value) {
52: this .resizeQuantity = value;
53: }
54:
55: public String getIsCacheOverflowAllowed() {
56: return isCacheOverflowAllowed;
57: }
58:
59: public void setIsCacheOverflowAllowed(String value) {
60: this .isCacheOverflowAllowed = value;
61: }
62:
63: public String getCacheIdleTimeoutInSeconds() {
64: return cacheIdleTimeoutInSeconds;
65: }
66:
67: public void setCacheIdleTimeoutInSeconds(String value) {
68: this .cacheIdleTimeoutInSeconds = value;
69: }
70:
71: public String getRemovalTimeoutInSeconds() {
72: return removalTimeoutInSeconds;
73: }
74:
75: public void setRemovalTimeoutInSeconds(String value) {
76: this .removalTimeoutInSeconds = value;
77: }
78:
79: public String getVictimSelectionPolicy() {
80: return victimSelectionPolicy;
81: }
82:
83: public void setVictimSelectionPolicy(String value) {
84: this.victimSelectionPolicy = value;
85: }
86: }
|