1 package org.apache.archiva.configuration;
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
23 * Cache configuration.
25 * @version $Revision$ $Date$
27 @SuppressWarnings( "all" )
28 public class CacheConfiguration
29 implements java.io.Serializable
32 //--------------------------/
33 //- Class/Member Variables -/
34 //--------------------------/
39 private int timeToIdleSeconds = -1;
44 private int timeToLiveSeconds = -1;
47 * max elements in memory.
49 private int maxElementsInMemory = -1;
52 * max elements on disk.
54 private int maxElementsOnDisk = -1;
62 * Get max elements in memory.
66 public int getMaxElementsInMemory()
68 return this.maxElementsInMemory;
69 } //-- int getMaxElementsInMemory()
72 * Get max elements on disk.
76 public int getMaxElementsOnDisk()
78 return this.maxElementsOnDisk;
79 } //-- int getMaxElementsOnDisk()
82 * Get timeToIdleSeconds.
86 public int getTimeToIdleSeconds()
88 return this.timeToIdleSeconds;
89 } //-- int getTimeToIdleSeconds()
92 * Get timeToLiveSeconds.
96 public int getTimeToLiveSeconds()
98 return this.timeToLiveSeconds;
99 } //-- int getTimeToLiveSeconds()
102 * Set max elements in memory.
104 * @param maxElementsInMemory
106 public void setMaxElementsInMemory( int maxElementsInMemory )
108 this.maxElementsInMemory = maxElementsInMemory;
109 } //-- void setMaxElementsInMemory( int )
112 * Set max elements on disk.
114 * @param maxElementsOnDisk
116 public void setMaxElementsOnDisk( int maxElementsOnDisk )
118 this.maxElementsOnDisk = maxElementsOnDisk;
119 } //-- void setMaxElementsOnDisk( int )
122 * Set timeToIdleSeconds.
124 * @param timeToIdleSeconds
126 public void setTimeToIdleSeconds( int timeToIdleSeconds )
128 this.timeToIdleSeconds = timeToIdleSeconds;
129 } //-- void setTimeToIdleSeconds( int )
132 * Set timeToLiveSeconds.
134 * @param timeToLiveSeconds
136 public void setTimeToLiveSeconds( int timeToLiveSeconds )
138 this.timeToLiveSeconds = timeToLiveSeconds;
139 } //-- void setTimeToLiveSeconds( int )