This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.configuration;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *   http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022/**
023 * Cache configuration.
024 * 
025 * @version $Revision$ $Date$
026 */
027@SuppressWarnings( "all" )
028public class CacheConfiguration
029    implements java.io.Serializable
030{
031
032      //--------------------------/
033     //- Class/Member Variables -/
034    //--------------------------/
035
036    /**
037     * TimeToIdleSeconds.
038     */
039    private int timeToIdleSeconds = -1;
040
041    /**
042     * TimeToLiveSeconds.
043     */
044    private int timeToLiveSeconds = -1;
045
046    /**
047     * max elements in memory.
048     */
049    private int maxElementsInMemory = -1;
050
051    /**
052     * max elements on disk.
053     */
054    private int maxElementsOnDisk = -1;
055
056
057      //-----------/
058     //- Methods -/
059    //-----------/
060
061    /**
062     * Get max elements in memory.
063     * 
064     * @return int
065     */
066    public int getMaxElementsInMemory()
067    {
068        return this.maxElementsInMemory;
069    } //-- int getMaxElementsInMemory()
070
071    /**
072     * Get max elements on disk.
073     * 
074     * @return int
075     */
076    public int getMaxElementsOnDisk()
077    {
078        return this.maxElementsOnDisk;
079    } //-- int getMaxElementsOnDisk()
080
081    /**
082     * Get timeToIdleSeconds.
083     * 
084     * @return int
085     */
086    public int getTimeToIdleSeconds()
087    {
088        return this.timeToIdleSeconds;
089    } //-- int getTimeToIdleSeconds()
090
091    /**
092     * Get timeToLiveSeconds.
093     * 
094     * @return int
095     */
096    public int getTimeToLiveSeconds()
097    {
098        return this.timeToLiveSeconds;
099    } //-- int getTimeToLiveSeconds()
100
101    /**
102     * Set max elements in memory.
103     * 
104     * @param maxElementsInMemory
105     */
106    public void setMaxElementsInMemory( int maxElementsInMemory )
107    {
108        this.maxElementsInMemory = maxElementsInMemory;
109    } //-- void setMaxElementsInMemory( int )
110
111    /**
112     * Set max elements on disk.
113     * 
114     * @param maxElementsOnDisk
115     */
116    public void setMaxElementsOnDisk( int maxElementsOnDisk )
117    {
118        this.maxElementsOnDisk = maxElementsOnDisk;
119    } //-- void setMaxElementsOnDisk( int )
120
121    /**
122     * Set timeToIdleSeconds.
123     * 
124     * @param timeToIdleSeconds
125     */
126    public void setTimeToIdleSeconds( int timeToIdleSeconds )
127    {
128        this.timeToIdleSeconds = timeToIdleSeconds;
129    } //-- void setTimeToIdleSeconds( int )
130
131    /**
132     * Set timeToLiveSeconds.
133     * 
134     * @param timeToLiveSeconds
135     */
136    public void setTimeToLiveSeconds( int timeToLiveSeconds )
137    {
138        this.timeToLiveSeconds = timeToLiveSeconds;
139    } //-- void setTimeToLiveSeconds( int )
140
141}