|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dontdrinkandroot.cache.expungestrategy.impl.AbstractMaxSizeExpungeStrategy
net.dontdrinkandroot.cache.expungestrategy.impl.AbstractRecyclingExpungeStrategy
public abstract class AbstractRecyclingExpungeStrategy
An AbstractMaxSizeExpungeStrategy that triggers once the cache size is larger than a max size plus a recycle
size or a recycle factor.
| Field Summary |
|---|
| Fields inherited from class net.dontdrinkandroot.cache.expungestrategy.impl.AbstractMaxSizeExpungeStrategy |
|---|
maxSize |
| Constructor Summary | |
|---|---|
AbstractRecyclingExpungeStrategy(int maxSize,
float recycleFactor)
Constructs a new AbstractRecyclingExpungeStrategy with the given max size and recycle factor (a value
between 0 and 1 that is the percentage of the max size to be used as the recycle size). |
|
AbstractRecyclingExpungeStrategy(int maxSize,
int recycleSize)
Constructs a new AbstractRecyclingExpungeStrategy with the given max size and recycle size. |
|
| Method Summary | |
|---|---|
int |
getRecycleSize()
Get the recycle size. |
void |
setRecycleFactor(float recycleFactor)
Set the recycle factor (a value between 0 and 1 that is the percentage of the max size to be used as the recycle size). |
void |
setRecycleSize(int recycleSize)
Set the recycle size. |
boolean |
triggers(CacheStatistics statistics)
Checks if the strategy triggers based on the given statistics. |
| Methods inherited from class net.dontdrinkandroot.cache.expungestrategy.impl.AbstractMaxSizeExpungeStrategy |
|---|
getComparator, getMaxSize, getToExpungeMetaData, setMaxSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRecyclingExpungeStrategy(int maxSize,
float recycleFactor)
AbstractRecyclingExpungeStrategy with the given max size and recycle factor (a value
between 0 and 1 that is the percentage of the max size to be used as the recycle size).
public AbstractRecyclingExpungeStrategy(int maxSize,
int recycleSize)
AbstractRecyclingExpungeStrategy with the given max size and recycle size.
| Method Detail |
|---|
public void setRecycleSize(int recycleSize)
public int getRecycleSize()
public void setRecycleFactor(float recycleFactor)
public boolean triggers(CacheStatistics statistics)
ExpungeStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||