001 package railo.runtime.cache.eh.remote.rest.sax; 002 003 public class CacheConfiguration { 004 005 006 007 private boolean clearOnFlush; 008 private int diskExpiryThreadIntervalSeconds; 009 private boolean diskPersistent; 010 private long diskSpoolBufferSize; 011 private boolean eternal; 012 private int maxElementsInMemory; 013 private int maxElementsOnDisk; 014 private String name; 015 private boolean overflowToDisk; 016 private int timeToIdleSeconds; 017 private int timeToLiveSeconds; 018 019 /** 020 * @return the clearOnFlush 021 */ 022 public boolean getClearOnFlush() { 023 return clearOnFlush; 024 } 025 026 /** 027 * @param clearOnFlush the clearOnFlush to set 028 */ 029 public void setClearOnFlush(boolean clearOnFlush) { 030 this.clearOnFlush = clearOnFlush; 031 } 032 033 /** 034 * @return the diskExpiryThreadIntervalSeconds 035 */ 036 public int getDiskExpiryThreadIntervalSeconds() { 037 return diskExpiryThreadIntervalSeconds; 038 } 039 040 /** 041 * @param diskExpiryThreadIntervalSeconds the diskExpiryThreadIntervalSeconds to set 042 */ 043 public void setDiskExpiryThreadIntervalSeconds(int diskExpiryThreadIntervalSeconds) { 044 this.diskExpiryThreadIntervalSeconds = diskExpiryThreadIntervalSeconds; 045 } 046 047 /** 048 * @return the diskPersistent 049 */ 050 public boolean getDiskPersistent() { 051 return diskPersistent; 052 } 053 054 /** 055 * @param diskPersistent the diskPersistent to set 056 */ 057 public void setDiskPersistent(boolean diskPersistent) { 058 this.diskPersistent = diskPersistent; 059 } 060 061 /** 062 * @return the diskSpoolBufferSize 063 */ 064 public long getDiskSpoolBufferSize() { 065 return diskSpoolBufferSize; 066 } 067 068 /** 069 * @param diskSpoolBufferSize the diskSpoolBufferSize to set 070 */ 071 public void setDiskSpoolBufferSize(long diskSpoolBufferSize) { 072 this.diskSpoolBufferSize = diskSpoolBufferSize; 073 } 074 075 /** 076 * @return the eternal 077 */ 078 public boolean getEternal() { 079 return eternal; 080 } 081 082 /** 083 * @param eternal the eternal to set 084 */ 085 public void setEternal(boolean eternal) { 086 this.eternal = eternal; 087 } 088 089 /** 090 * @return the maxElementsInMemory 091 */ 092 public int getMaxElementsInMemory() { 093 return maxElementsInMemory; 094 } 095 096 /** 097 * @param maxElementsInMemory the maxElementsInMemory to set 098 */ 099 public void setMaxElementsInMemory(int maxElementsInMemory) { 100 this.maxElementsInMemory = maxElementsInMemory; 101 } 102 103 /** 104 * @return the maxElementsOnDisk 105 */ 106 public int getMaxElementsOnDisk() { 107 return maxElementsOnDisk; 108 } 109 110 /** 111 * @param maxElementsOnDisk the maxElementsOnDisk to set 112 */ 113 public void setMaxElementsOnDisk(int maxElementsOnDisk) { 114 this.maxElementsOnDisk = maxElementsOnDisk; 115 } 116 117 /** 118 * @return the name 119 */ 120 public String getName() { 121 return name; 122 } 123 124 /** 125 * @param name the name to set 126 */ 127 public void setName(String name) { 128 this.name = name; 129 } 130 /** 131 * @return the overflowToDisk 132 */ 133 public boolean isOverflowToDisk() { 134 return overflowToDisk; 135 } 136 137 /** 138 * @param overflowToDisk the overflowToDisk to set 139 */ 140 public void setOverflowToDisk(boolean overflowToDisk) { 141 this.overflowToDisk = overflowToDisk; 142 } 143 144 145 /** 146 * @return the timeToIdleSeconds 147 */ 148 public int getTimeToIdleSeconds() { 149 return timeToIdleSeconds; 150 } 151 152 /** 153 * @param timeToIdleSeconds the timeToIdleSeconds to set 154 */ 155 public void setTimeToIdleSeconds(int timeToIdleSeconds) { 156 this.timeToIdleSeconds = timeToIdleSeconds; 157 } 158 159 /** 160 * @return the timeToLiveSeconds 161 */ 162 public int getTimeToLiveSeconds() { 163 return timeToLiveSeconds; 164 } 165 166 /** 167 * @param timeToLiveSeconds the timeToLiveSeconds to set 168 */ 169 public void setTimeToLiveSeconds(int timeToLiveSeconds) { 170 this.timeToLiveSeconds = timeToLiveSeconds; 171 } 172 }