org.apache.archiva.configuration
Class CacheConfiguration

java.lang.Object
  extended by org.apache.archiva.configuration.CacheConfiguration
All Implemented Interfaces:
Serializable

public class CacheConfiguration
extends Object
implements Serializable

Cache configuration.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
private  int maxElementsInMemory
          max elements in memory.
private  int maxElementsOnDisk
          max elements on disk.
private  int timeToIdleSeconds
          TimeToIdleSeconds.
private  int timeToLiveSeconds
          TimeToLiveSeconds.
 
Constructor Summary
CacheConfiguration()
           
 
Method Summary
 int getMaxElementsInMemory()
          Get max elements in memory.
 int getMaxElementsOnDisk()
          Get max elements on disk.
 int getTimeToIdleSeconds()
          Get timeToIdleSeconds.
 int getTimeToLiveSeconds()
          Get timeToLiveSeconds.
 void setMaxElementsInMemory(int maxElementsInMemory)
          Set max elements in memory.
 void setMaxElementsOnDisk(int maxElementsOnDisk)
          Set max elements on disk.
 void setTimeToIdleSeconds(int timeToIdleSeconds)
          Set timeToIdleSeconds.
 void setTimeToLiveSeconds(int timeToLiveSeconds)
          Set timeToLiveSeconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeToIdleSeconds

private int timeToIdleSeconds
TimeToIdleSeconds.


timeToLiveSeconds

private int timeToLiveSeconds
TimeToLiveSeconds.


maxElementsInMemory

private int maxElementsInMemory
max elements in memory.


maxElementsOnDisk

private int maxElementsOnDisk
max elements on disk.

Constructor Detail

CacheConfiguration

public CacheConfiguration()
Method Detail

getMaxElementsInMemory

public int getMaxElementsInMemory()
Get max elements in memory.

Returns:
int

getMaxElementsOnDisk

public int getMaxElementsOnDisk()
Get max elements on disk.

Returns:
int

getTimeToIdleSeconds

public int getTimeToIdleSeconds()
Get timeToIdleSeconds.

Returns:
int

getTimeToLiveSeconds

public int getTimeToLiveSeconds()
Get timeToLiveSeconds.

Returns:
int

setMaxElementsInMemory

public void setMaxElementsInMemory(int maxElementsInMemory)
Set max elements in memory.

Parameters:
maxElementsInMemory -

setMaxElementsOnDisk

public void setMaxElementsOnDisk(int maxElementsOnDisk)
Set max elements on disk.

Parameters:
maxElementsOnDisk -

setTimeToIdleSeconds

public void setTimeToIdleSeconds(int timeToIdleSeconds)
Set timeToIdleSeconds.

Parameters:
timeToIdleSeconds -

setTimeToLiveSeconds

public void setTimeToLiveSeconds(int timeToLiveSeconds)
Set timeToLiveSeconds.

Parameters:
timeToLiveSeconds -


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.