public class CacheConfiguration extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private int |
maxElementsInMemory
max elements in memory.
|
private int |
maxElementsOnDisk
max elements on disk.
|
private int |
timeToIdleSeconds
TimeToIdleSeconds.
|
private int |
timeToLiveSeconds
TimeToLiveSeconds.
|
Constructor and Description |
---|
CacheConfiguration() |
Modifier and Type | Method and Description |
---|---|
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.
|
private int timeToIdleSeconds
private int timeToLiveSeconds
private int maxElementsInMemory
private int maxElementsOnDisk
public CacheConfiguration()
public int getMaxElementsInMemory()
public int getMaxElementsOnDisk()
public int getTimeToIdleSeconds()
public int getTimeToLiveSeconds()
public void setMaxElementsInMemory(int maxElementsInMemory)
maxElementsInMemory
- public void setMaxElementsOnDisk(int maxElementsOnDisk)
maxElementsOnDisk
- public void setTimeToIdleSeconds(int timeToIdleSeconds)
timeToIdleSeconds
- public void setTimeToLiveSeconds(int timeToLiveSeconds)
timeToLiveSeconds
- Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.