001/**
002 *
003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
004 *
005 * This library is free software; you can redistribute it and/or
006 * modify it under the terms of the GNU Lesser General Public
007 * License as published by the Free Software Foundation; either 
008 * version 2.1 of the License, or (at your option) any later version.
009 * 
010 * This library is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013 * Lesser General Public License for more details.
014 * 
015 * You should have received a copy of the GNU Lesser General Public 
016 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
017 * 
018 **/
019package lucee.runtime.cache.eh.remote.rest.sax;
020
021public class CacheConfiguration {
022
023
024
025        private boolean clearOnFlush;
026        private int diskExpiryThreadIntervalSeconds;
027        private boolean diskPersistent;
028        private long diskSpoolBufferSize;
029        private boolean eternal;
030        private int maxElementsInMemory;
031        private int maxElementsOnDisk;
032        private String name;
033        private boolean overflowToDisk;
034        private int timeToIdleSeconds;
035        private int timeToLiveSeconds;
036        
037        /**
038         * @return the clearOnFlush
039         */
040        public boolean getClearOnFlush() {
041                return clearOnFlush;
042        }
043
044        /**
045         * @param clearOnFlush the clearOnFlush to set
046         */
047        public void setClearOnFlush(boolean clearOnFlush) {
048                this.clearOnFlush = clearOnFlush;
049        }
050
051        /**
052         * @return the diskExpiryThreadIntervalSeconds
053         */
054        public int getDiskExpiryThreadIntervalSeconds() {
055                return diskExpiryThreadIntervalSeconds;
056        }
057
058        /**
059         * @param diskExpiryThreadIntervalSeconds the diskExpiryThreadIntervalSeconds to set
060         */
061        public void setDiskExpiryThreadIntervalSeconds(int diskExpiryThreadIntervalSeconds) {
062                this.diskExpiryThreadIntervalSeconds = diskExpiryThreadIntervalSeconds;
063        }
064
065        /**
066         * @return the diskPersistent
067         */
068        public boolean getDiskPersistent() {
069                return diskPersistent;
070        }
071
072        /**
073         * @param diskPersistent the diskPersistent to set
074         */
075        public void setDiskPersistent(boolean diskPersistent) {
076                this.diskPersistent = diskPersistent;
077        }
078        
079        /**
080         * @return the diskSpoolBufferSize
081         */
082        public long getDiskSpoolBufferSize() {
083                return diskSpoolBufferSize;
084        }
085
086        /**
087         * @param diskSpoolBufferSize the diskSpoolBufferSize to set
088         */
089        public void setDiskSpoolBufferSize(long diskSpoolBufferSize) {
090                this.diskSpoolBufferSize = diskSpoolBufferSize;
091        }
092        
093        /**
094         * @return the eternal
095         */
096        public boolean getEternal() {
097                return eternal;
098        }
099
100        /**
101         * @param eternal the eternal to set
102         */
103        public void setEternal(boolean eternal) {
104                this.eternal = eternal;
105        }
106        
107        /**
108         * @return the maxElementsInMemory
109         */
110        public int getMaxElementsInMemory() {
111                return maxElementsInMemory;
112        }
113
114        /**
115         * @param maxElementsInMemory the maxElementsInMemory to set
116         */
117        public void setMaxElementsInMemory(int maxElementsInMemory) {
118                this.maxElementsInMemory = maxElementsInMemory;
119        }
120
121        /**
122         * @return the maxElementsOnDisk
123         */
124        public int getMaxElementsOnDisk() {
125                return maxElementsOnDisk;
126        }
127
128        /**
129         * @param maxElementsOnDisk the maxElementsOnDisk to set
130         */
131        public void setMaxElementsOnDisk(int maxElementsOnDisk) {
132                this.maxElementsOnDisk = maxElementsOnDisk;
133        }
134
135        /**
136         * @return the name
137         */
138        public String getName() {
139                return name;
140        }
141
142        /**
143         * @param name the name to set
144         */
145        public void setName(String name) {
146                this.name = name;
147        }
148        /**
149         * @return the overflowToDisk
150         */
151        public boolean isOverflowToDisk() {
152                return overflowToDisk;
153        }
154
155        /**
156         * @param overflowToDisk the overflowToDisk to set
157         */
158        public void setOverflowToDisk(boolean overflowToDisk) {
159                this.overflowToDisk = overflowToDisk;
160        }
161
162
163        /**
164         * @return the timeToIdleSeconds
165         */
166        public int getTimeToIdleSeconds() {
167                return timeToIdleSeconds;
168        }
169
170        /**
171         * @param timeToIdleSeconds the timeToIdleSeconds to set
172         */
173        public void setTimeToIdleSeconds(int timeToIdleSeconds) {
174                this.timeToIdleSeconds = timeToIdleSeconds;
175        }
176
177        /**
178         * @return the timeToLiveSeconds
179         */
180        public int getTimeToLiveSeconds() {
181                return timeToLiveSeconds;
182        }
183
184        /**
185         * @param timeToLiveSeconds the timeToLiveSeconds to set
186         */
187        public void setTimeToLiveSeconds(int timeToLiveSeconds) {
188                this.timeToLiveSeconds = timeToLiveSeconds;
189        }
190}