public class NearCacheConfigReadOnly extends NearCacheConfig
NearCacheConfig.LocalUpdatePolicy
DEFAULT_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, writeData
public NearCacheConfigReadOnly()
public NearCacheConfigReadOnly(NearCacheConfig config)
public NearCacheConfig setName(String name)
NearCacheConfig
setName
in class NearCacheConfig
name
- The name of the Near Cache.public NearCacheConfig setTimeToLiveSeconds(int timeToLiveSeconds)
NearCacheConfig
setTimeToLiveSeconds
in class NearCacheConfig
timeToLiveSeconds
- The maximum number of seconds for each entry to stay in the Near Cache.public NearCacheConfig setMaxSize(int maxSize)
NearCacheConfig
setMaxSize
in class NearCacheConfig
maxSize
- The maximum number of seconds for each entry to stay in the Near Cache.public NearCacheConfig setEvictionPolicy(String evictionPolicy)
NearCacheConfig
setEvictionPolicy
in class NearCacheConfig
evictionPolicy
- The eviction policy for the Near Cache.public NearCacheConfig setMaxIdleSeconds(int maxIdleSeconds)
NearCacheConfig
setMaxIdleSeconds
in class NearCacheConfig
maxIdleSeconds
- Maximum number of seconds each entry can stay in the Near Cache as
untouched (not-read).public NearCacheConfig setInvalidateOnChange(boolean invalidateOnChange)
NearCacheConfig
setInvalidateOnChange
in class NearCacheConfig
invalidateOnChange
- True to evict the cached entries if the entries are
changed (updated or removed), false otherwise.public NearCacheConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
NearCacheConfig
setInMemoryFormat
in class NearCacheConfig
inMemoryFormat
- The data type used to store entries.public NearCacheConfig setInMemoryFormat(String inMemoryFormat)
setInMemoryFormat
in class NearCacheConfig
public NearCacheConfig setCacheLocalEntries(boolean cacheLocalEntries)
NearCacheConfig
setCacheLocalEntries
in class NearCacheConfig
cacheLocalEntries
- True to cache local entries also.public NearCacheConfig setLocalUpdatePolicy(NearCacheConfig.LocalUpdatePolicy localUpdatePolicy)
setLocalUpdatePolicy
in class NearCacheConfig
public NearCacheConfig setEvictionConfig(EvictionConfig evictionConfig)
NearCacheConfig
setEvictionConfig
in class NearCacheConfig
evictionConfig
- The eviction configuration.public EvictionConfig getEvictionConfig()
NearCacheConfig
getEvictionConfig
in class NearCacheConfig
public NearCacheConfig setPreloaderConfig(NearCachePreloaderConfig preloaderConfig)
setPreloaderConfig
in class NearCacheConfig
public NearCachePreloaderConfig getPreloaderConfig()
getPreloaderConfig
in class NearCacheConfig
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
getId
in class NearCacheConfig
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.