001    // =================== DO NOT EDIT THIS FILE ====================
002    // Generated by Modello 1.7,
003    // any modifications will be overwritten.
004    // ==============================================================
005    
006    package org.apache.archiva.configuration;
007    
008    /**
009     * Cache configuration.
010     * 
011     * @version $Revision$ $Date$
012     */
013    @SuppressWarnings( "all" )
014    public class CacheConfiguration
015        implements java.io.Serializable
016    {
017    
018          //--------------------------/
019         //- Class/Member Variables -/
020        //--------------------------/
021    
022        /**
023         * TimeToIdleSeconds.
024         */
025        private int timeToIdleSeconds = -1;
026    
027        /**
028         * TimeToLiveSeconds.
029         */
030        private int timeToLiveSeconds = -1;
031    
032        /**
033         * max elements in memory.
034         */
035        private int maxElementsInMemory = -1;
036    
037        /**
038         * max elements on disk.
039         */
040        private int maxElementsOnDisk = -1;
041    
042    
043          //-----------/
044         //- Methods -/
045        //-----------/
046    
047        /**
048         * Get max elements in memory.
049         * 
050         * @return int
051         */
052        public int getMaxElementsInMemory()
053        {
054            return this.maxElementsInMemory;
055        } //-- int getMaxElementsInMemory()
056    
057        /**
058         * Get max elements on disk.
059         * 
060         * @return int
061         */
062        public int getMaxElementsOnDisk()
063        {
064            return this.maxElementsOnDisk;
065        } //-- int getMaxElementsOnDisk()
066    
067        /**
068         * Get timeToIdleSeconds.
069         * 
070         * @return int
071         */
072        public int getTimeToIdleSeconds()
073        {
074            return this.timeToIdleSeconds;
075        } //-- int getTimeToIdleSeconds()
076    
077        /**
078         * Get timeToLiveSeconds.
079         * 
080         * @return int
081         */
082        public int getTimeToLiveSeconds()
083        {
084            return this.timeToLiveSeconds;
085        } //-- int getTimeToLiveSeconds()
086    
087        /**
088         * Set max elements in memory.
089         * 
090         * @param maxElementsInMemory
091         */
092        public void setMaxElementsInMemory( int maxElementsInMemory )
093        {
094            this.maxElementsInMemory = maxElementsInMemory;
095        } //-- void setMaxElementsInMemory( int )
096    
097        /**
098         * Set max elements on disk.
099         * 
100         * @param maxElementsOnDisk
101         */
102        public void setMaxElementsOnDisk( int maxElementsOnDisk )
103        {
104            this.maxElementsOnDisk = maxElementsOnDisk;
105        } //-- void setMaxElementsOnDisk( int )
106    
107        /**
108         * Set timeToIdleSeconds.
109         * 
110         * @param timeToIdleSeconds
111         */
112        public void setTimeToIdleSeconds( int timeToIdleSeconds )
113        {
114            this.timeToIdleSeconds = timeToIdleSeconds;
115        } //-- void setTimeToIdleSeconds( int )
116    
117        /**
118         * Set timeToLiveSeconds.
119         * 
120         * @param timeToLiveSeconds
121         */
122        public void setTimeToLiveSeconds( int timeToLiveSeconds )
123        {
124            this.timeToLiveSeconds = timeToLiveSeconds;
125        } //-- void setTimeToLiveSeconds( int )
126    
127    }