This project has retired. For details please refer to its Attic page.
CacheConfiguration xref
View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.7,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.archiva.configuration;
7   
8   /**
9    * Cache configuration.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class CacheConfiguration
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * TimeToIdleSeconds.
24       */
25      private int timeToIdleSeconds = -1;
26  
27      /**
28       * TimeToLiveSeconds.
29       */
30      private int timeToLiveSeconds = -1;
31  
32      /**
33       * max elements in memory.
34       */
35      private int maxElementsInMemory = -1;
36  
37      /**
38       * max elements on disk.
39       */
40      private int maxElementsOnDisk = -1;
41  
42  
43        //-----------/
44       //- Methods -/
45      //-----------/
46  
47      /**
48       * Get max elements in memory.
49       * 
50       * @return int
51       */
52      public int getMaxElementsInMemory()
53      {
54          return this.maxElementsInMemory;
55      } //-- int getMaxElementsInMemory()
56  
57      /**
58       * Get max elements on disk.
59       * 
60       * @return int
61       */
62      public int getMaxElementsOnDisk()
63      {
64          return this.maxElementsOnDisk;
65      } //-- int getMaxElementsOnDisk()
66  
67      /**
68       * Get timeToIdleSeconds.
69       * 
70       * @return int
71       */
72      public int getTimeToIdleSeconds()
73      {
74          return this.timeToIdleSeconds;
75      } //-- int getTimeToIdleSeconds()
76  
77      /**
78       * Get timeToLiveSeconds.
79       * 
80       * @return int
81       */
82      public int getTimeToLiveSeconds()
83      {
84          return this.timeToLiveSeconds;
85      } //-- int getTimeToLiveSeconds()
86  
87      /**
88       * Set max elements in memory.
89       * 
90       * @param maxElementsInMemory
91       */
92      public void setMaxElementsInMemory( int maxElementsInMemory )
93      {
94          this.maxElementsInMemory = maxElementsInMemory;
95      } //-- void setMaxElementsInMemory( int )
96  
97      /**
98       * Set max elements on disk.
99       * 
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 }