public class CacheConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_EXPIRY |
| Constructor and Description |
|---|
CacheConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> javax.cache.Cache<K,V> |
getCache(java.lang.String name,
java.lang.Class<K> keyClass,
java.lang.Class<V> valueClass) |
javax.cache.CacheManager |
getCacheManager() |
long |
getExpiry() |
long |
getMaxEntries() |
CacheProvider |
getProvider() |
boolean |
isStoreByValue() |
void |
setExpiry(long expiry) |
void |
setMaxEntries(long maxEntries) |
void |
setProvider(CacheProvider provider) |
void |
setStoreByValue(boolean storeByValue) |
public static final long DEFAULT_EXPIRY
public CacheProvider getProvider()
public void setProvider(CacheProvider provider)
public long getExpiry()
public void setExpiry(long expiry)
public long getMaxEntries()
public void setMaxEntries(long maxEntries)
public boolean isStoreByValue()
public void setStoreByValue(boolean storeByValue)
public javax.cache.CacheManager getCacheManager()
public <K,V> javax.cache.Cache<K,V> getCache(java.lang.String name,
java.lang.Class<K> keyClass,
java.lang.Class<V> valueClass)