public class NearCacheConfigReadOnly extends NearCacheConfig
NearCacheConfig.LocalUpdatePolicyDEFAULT_EVICTION_POLICY, DEFAULT_MAX_IDLE_SECONDS, DEFAULT_MAX_SIZE, DEFAULT_MEMORY_FORMAT, DEFAULT_TTL_SECONDS| Constructor and Description |
|---|
NearCacheConfigReadOnly()
Deprecated.
|
NearCacheConfigReadOnly(NearCacheConfig config)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
EvictionConfig |
getEvictionConfig()
Deprecated.
The eviction configuration.
|
int |
getId()
Deprecated.
Returns type identifier for this class.
|
NearCachePreloaderConfig |
getPreloaderConfig()
Deprecated.
|
NearCacheConfig |
setCacheLocalEntries(boolean cacheLocalEntries)
Deprecated.
True to cache local entries also.
|
NearCacheConfig |
setEvictionConfig(EvictionConfig evictionConfig)
Deprecated.
Sets the eviction configuration.
|
NearCacheConfig |
setEvictionPolicy(String evictionPolicy)
Deprecated.
Sets the eviction policy.
|
NearCacheConfig |
setInMemoryFormat(InMemoryFormat inMemoryFormat)
Deprecated.
Sets the data type used to store entries.
|
NearCacheConfig |
setInMemoryFormat(String inMemoryFormat)
Deprecated.
|
NearCacheConfig |
setInvalidateOnChange(boolean invalidateOnChange)
Deprecated.
True to evict the cached entries if the entries are changed (updated or removed).
|
NearCacheConfig |
setLocalUpdatePolicy(NearCacheConfig.LocalUpdatePolicy localUpdatePolicy)
Deprecated.
|
NearCacheConfig |
setMaxIdleSeconds(int maxIdleSeconds)
Deprecated.
Maximum number of seconds each entry can stay in the Near Cache as untouched (not-read).
|
NearCacheConfig |
setMaxSize(int maxSize)
Deprecated.
Sets the maximum size of the Near Cache.
|
NearCacheConfig |
setName(String name)
Deprecated.
Sets the name of the Near Cache.
|
NearCacheConfig |
setPreloaderConfig(NearCachePreloaderConfig preloaderConfig)
Deprecated.
|
NearCacheConfig |
setTimeToLiveSeconds(int timeToLiveSeconds)
Deprecated.
Sets the maximum number of seconds for each entry to stay in the Near Cache.
|
getAsReadOnly, getEvictionPolicy, getFactoryId, getInMemoryFormat, getLocalUpdatePolicy, getMaxIdleSeconds, getMaxSize, getName, getTimeToLiveSeconds, isCacheLocalEntries, isInvalidateOnChange, readData, toString, writeDatapublic NearCacheConfigReadOnly()
public NearCacheConfigReadOnly(NearCacheConfig config)
public NearCacheConfig setName(String name)
NearCacheConfigsetName in class NearCacheConfigname - The name of the Near Cache.public NearCacheConfig setTimeToLiveSeconds(int timeToLiveSeconds)
NearCacheConfigsetTimeToLiveSeconds in class NearCacheConfigtimeToLiveSeconds - The maximum number of seconds for each entry to stay in the Near Cache.public NearCacheConfig setMaxSize(int maxSize)
NearCacheConfigsetMaxSize in class NearCacheConfigmaxSize - The maximum number of seconds for each entry to stay in the Near Cache.public NearCacheConfig setEvictionPolicy(String evictionPolicy)
NearCacheConfigsetEvictionPolicy in class NearCacheConfigevictionPolicy - The eviction policy for the Near Cache.public NearCacheConfig setMaxIdleSeconds(int maxIdleSeconds)
NearCacheConfigsetMaxIdleSeconds in class NearCacheConfigmaxIdleSeconds - Maximum number of seconds each entry can stay in the Near Cache as
untouched (not-read).public NearCacheConfig setInvalidateOnChange(boolean invalidateOnChange)
NearCacheConfigsetInvalidateOnChange in class NearCacheConfiginvalidateOnChange - True to evict the cached entries if the entries are
changed (updated or removed), false otherwise.public NearCacheConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
NearCacheConfigsetInMemoryFormat in class NearCacheConfiginMemoryFormat - The data type used to store entries.public NearCacheConfig setInMemoryFormat(String inMemoryFormat)
setInMemoryFormat in class NearCacheConfigpublic NearCacheConfig setCacheLocalEntries(boolean cacheLocalEntries)
NearCacheConfigsetCacheLocalEntries in class NearCacheConfigcacheLocalEntries - True to cache local entries also.public NearCacheConfig setLocalUpdatePolicy(NearCacheConfig.LocalUpdatePolicy localUpdatePolicy)
setLocalUpdatePolicy in class NearCacheConfigpublic NearCacheConfig setEvictionConfig(EvictionConfig evictionConfig)
NearCacheConfigsetEvictionConfig in class NearCacheConfigevictionConfig - The eviction configuration.public EvictionConfig getEvictionConfig()
NearCacheConfiggetEvictionConfig in class NearCacheConfigpublic NearCacheConfig setPreloaderConfig(NearCachePreloaderConfig preloaderConfig)
setPreloaderConfig in class NearCacheConfigpublic NearCachePreloaderConfig getPreloaderConfig()
getPreloaderConfig in class NearCacheConfigpublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablegetId in class NearCacheConfigCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.