public class CacheConfig extends Object
Constructor and Description |
---|
CacheConfig() |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getEntryType() |
int |
getExpirySeconds() |
Class<?> |
getImplementation() |
Class<?> |
getKeyType() |
int |
getMaxSize() |
int |
getMaxSizeHighBound() |
int |
getMaxSizeLowBound() |
String |
getName() |
Class<?> |
getValueType() |
boolean |
isBackgroundRefresh() |
boolean |
isKeepDataAfterExpired() |
void |
setBackgroundRefresh(boolean backgroundRefresh) |
void |
setEntryType(Class<?> entryType) |
void |
setExpirySeconds(int expirySeconds)
Time to pass until an entry is expired and will not be returned by the cache any
more.
|
void |
setImplementation(Class<?> cacheImplementation) |
void |
setKeepDataAfterExpired(boolean v)
Expired data is kept in the cache until the entry is evicted by the replacement
algorithm.
|
void |
setKeyType(Class<?> keyType) |
void |
setMaxSize(int maxSize) |
void |
setMaxSizeHighBound(int maxSizeHighBound) |
void |
setMaxSizeLowBound(int maxSizeLowBound) |
void |
setName(String name) |
void |
setValueType(Class<?> valueType) |
public CacheConfig()
public int getMaxSize()
public void setMaxSize(int maxSize)
public int getMaxSizeHighBound()
public void setMaxSizeHighBound(int maxSizeHighBound)
public int getMaxSizeLowBound()
public void setMaxSizeLowBound(int maxSizeLowBound)
public boolean isBackgroundRefresh()
public void setBackgroundRefresh(boolean backgroundRefresh)
public Class<?> getKeyType()
public void setKeyType(Class<?> keyType)
public Class<?> getValueType()
public Class<?> getEntryType()
public void setEntryType(Class<?> entryType)
public void setValueType(Class<?> valueType)
public int getExpirySeconds()
public void setExpirySeconds(int expirySeconds)
Integer.MAX_VALUE
means
no expiry.public boolean isKeepDataAfterExpired()
public void setKeepDataAfterExpired(boolean v)
public Class<?> getImplementation()
public void setImplementation(Class<?> cacheImplementation)
cache2k API documentation. Copyright © 2000–2014 headissue GmbH, Munich.