@java.lang.SuppressWarnings("unused") public class MCacheConfiguration<K, V> extends javax.cache.configuration.MutableConfiguration
Fields inherited from class | Fields |
---|---|
class javax.cache.configuration.MutableConfiguration |
serialVersionUID |
Constructor and description |
---|
MCacheConfiguration
() |
MCacheConfiguration
(javax.cache.configuration.CompleteConfiguration<K, V> conf) |
Type Params | Return Type | Name and description |
---|---|---|
|
public long |
getMaxCheckSeconds() |
|
public int |
getMaxEntries() |
|
public MCacheConfiguration<K, V> |
setMaxCheckSeconds(long seconds) Set maximum number of entries in the cache, 0 means no limit (default). |
|
public MCacheConfiguration<K, V> |
setMaxEntries(int elements) Set maximum number of entries in the cache, 0 means no limit (default). |
Methods inherited from class | Name |
---|---|
class javax.cache.configuration.MutableConfiguration |
javax.cache.configuration.MutableConfiguration#equals(java.lang.Object), javax.cache.configuration.MutableConfiguration#hashCode(), javax.cache.configuration.MutableConfiguration#getValueType(), javax.cache.configuration.MutableConfiguration#isReadThrough(), javax.cache.configuration.MutableConfiguration#isWriteThrough(), javax.cache.configuration.MutableConfiguration#isStatisticsEnabled(), javax.cache.configuration.MutableConfiguration#isStoreByValue(), javax.cache.configuration.MutableConfiguration#isManagementEnabled(), javax.cache.configuration.MutableConfiguration#getCacheLoaderFactory(), javax.cache.configuration.MutableConfiguration#setCacheLoaderFactory(javax.cache.configuration.Factory), javax.cache.configuration.MutableConfiguration#getCacheWriterFactory(), javax.cache.configuration.MutableConfiguration#setCacheWriterFactory(javax.cache.configuration.Factory), javax.cache.configuration.MutableConfiguration#getExpiryPolicyFactory(), javax.cache.configuration.MutableConfiguration#setExpiryPolicyFactory(javax.cache.configuration.Factory), javax.cache.configuration.MutableConfiguration#setReadThrough(boolean), javax.cache.configuration.MutableConfiguration#setWriteThrough(boolean), javax.cache.configuration.MutableConfiguration#setStoreByValue(boolean), javax.cache.configuration.MutableConfiguration#setStatisticsEnabled(boolean), javax.cache.configuration.MutableConfiguration#setManagementEnabled(boolean), javax.cache.configuration.MutableConfiguration#getKeyType(), javax.cache.configuration.MutableConfiguration#setTypes(java.lang.Class, java.lang.Class), javax.cache.configuration.MutableConfiguration#getCacheEntryListenerConfigurations(), javax.cache.configuration.MutableConfiguration#addCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration), javax.cache.configuration.MutableConfiguration#removeCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration), javax.cache.configuration.MutableConfiguration#wait(long), javax.cache.configuration.MutableConfiguration#wait(long, int), javax.cache.configuration.MutableConfiguration#wait(), javax.cache.configuration.MutableConfiguration#toString(), javax.cache.configuration.MutableConfiguration#getClass(), javax.cache.configuration.MutableConfiguration#notify(), javax.cache.configuration.MutableConfiguration#notifyAll() |
Set maximum number of entries in the cache, 0 means no limit (default).
Set maximum number of entries in the cache, 0 means no limit (default). Limit is enforced in a scheduled worker, not on put operations.