public class CacheSimpleConfigReadOnly extends CacheSimpleConfig
CacheSimpleConfig
CacheSimpleConfig.ExpiryPolicyFactoryConfig
DEFAULT_BACKUP_COUNT, DEFAULT_CACHE_MERGE_POLICY, DEFAULT_IN_MEMORY_FORMAT, MAX_BACKUP_COUNT, MIN_BACKUP_COUNT
Constructor and Description |
---|
CacheSimpleConfigReadOnly(CacheSimpleConfig cacheSimpleConfig)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
CacheSimpleConfig |
addCachePartitionLostListenerConfig(CachePartitionLostListenerConfig listenerConfig)
Deprecated.
Adds the CachePartitionLostListenerConfig to partitionLostListenerConfigs.
|
CacheSimpleConfig |
addEntryListenerConfig(CacheSimpleEntryListenerConfig listenerConfig)
Deprecated.
Adds
CacheSimpleEntryListenerConfig to this ICache . |
List<CacheSimpleEntryListenerConfig> |
getCacheEntryListeners()
Deprecated.
Gets a list of
CacheSimpleEntryListenerConfig from this ICache . |
EvictionConfig |
getEvictionConfig()
Deprecated.
Gets the eviction configuration for this
ICache . |
CacheSimpleConfig |
setAsyncBackupCount(int asyncBackupCount)
Deprecated.
Sets the number of asynchronous backups for this
ICache . |
CacheSimpleConfig |
setBackupCount(int backupCount)
Deprecated.
Sets the number of synchronous backups for this
ICache . |
CacheSimpleConfig |
setCacheEntryListeners(List<CacheSimpleEntryListenerConfig> cacheEntryListeners)
Deprecated.
Sets a list of
CacheSimpleEntryListenerConfig for this ICache . |
CacheSimpleConfig |
setCacheLoaderFactory(String cacheLoaderFactory)
Deprecated.
Sets the factory for this
CacheLoader . |
CacheSimpleConfig |
setCacheWriterFactory(String cacheWriterFactory)
Deprecated.
Sets the factory for this
CacheWriter . |
void |
setDisablePerEntryInvalidationEvents(boolean disablePerEntryInvalidationEvents)
Deprecated.
Sets invalidation events disabled status for per entry.
|
CacheSimpleConfig |
setEvictionConfig(EvictionConfig evictionConfig)
Deprecated.
Sets the eviction configuration for this
ICache . |
CacheSimpleConfig |
setExpiryPolicyFactory(String className)
Deprecated.
Sets the factory for this
ExpiryPolicy . |
CacheSimpleConfig |
setExpiryPolicyFactoryConfig(CacheSimpleConfig.ExpiryPolicyFactoryConfig expiryPolicyFactoryConfig)
Deprecated.
Sets the factory configuration for this
ExpiryPolicy . |
CacheSimpleConfig |
setHotRestartConfig(HotRestartConfig hotRestartConfig)
Deprecated.
Sets the
HotRestartConfig for this CacheSimpleConfig |
CacheSimpleConfig |
setInMemoryFormat(InMemoryFormat inMemoryFormat)
Deprecated.
Sets the InMemory Format for this
ICache . |
CacheSimpleConfig |
setKeyType(String keyType)
Deprecated.
Sets the key type for this
ICache . |
CacheSimpleConfig |
setManagementEnabled(boolean managementEnabled)
Deprecated.
Sets management to enabled or disabled for this
ICache . |
void |
setMergePolicy(String mergePolicy)
Deprecated.
Sets the class name of
CacheMergePolicy implementation to this cache config. |
CacheSimpleConfig |
setName(String name)
Deprecated.
Sets the name of this
ICache . |
CacheSimpleConfig |
setPartitionLostListenerConfigs(List<CachePartitionLostListenerConfig> partitionLostListenerConfigs)
Deprecated.
Sets the PartitionLostListenerConfigs.
|
CacheSimpleConfig |
setQuorumName(String quorumName)
Deprecated.
Associates this cache configuration to a quorum.
|
CacheSimpleConfig |
setReadThrough(boolean readThrough)
Deprecated.
Enables or disables read-through: a read loads the entry from the data store if it is not already in the cache.
|
CacheSimpleConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Deprecated.
Sets statistics to enabled or disabled for this
ICache . |
CacheSimpleConfig |
setValueType(String valueType)
Deprecated.
Sets the value type for this
ICache . |
void |
setWanReplicationRef(WanReplicationRef wanReplicationRef)
Deprecated.
Sets the WAN target replication reference.
|
CacheSimpleConfig |
setWriteThrough(boolean writeThrough)
Deprecated.
Enables or disables write-through for this
ICache : a write to the queue also loads
the entry into the data store. |
equals, getAsReadOnly, getAsyncBackupCount, getBackupCount, getCacheLoader, getCacheLoaderFactory, getCacheWriter, getCacheWriterFactory, getExpiryPolicyFactoryConfig, getFactoryId, getHotRestartConfig, getId, getInMemoryFormat, getKeyType, getMergePolicy, getName, getPartitionLostListenerConfigs, getProvidedMergeTypes, getQuorumName, getValueType, getWanReplicationRef, hashCode, isDisablePerEntryInvalidationEvents, isManagementEnabled, isReadThrough, isStatisticsEnabled, isWriteThrough, readData, setCacheLoader, setCacheWriter, toString, writeData
public CacheSimpleConfigReadOnly(CacheSimpleConfig cacheSimpleConfig)
public EvictionConfig getEvictionConfig()
CacheSimpleConfig
ICache
.getEvictionConfig
in class CacheSimpleConfig
public List<CacheSimpleEntryListenerConfig> getCacheEntryListeners()
CacheSimpleConfig
CacheSimpleEntryListenerConfig
from this ICache
.getCacheEntryListeners
in class CacheSimpleConfig
CacheSimpleEntryListenerConfig
public CacheSimpleConfig setAsyncBackupCount(int asyncBackupCount)
CacheSimpleConfig
ICache
.setAsyncBackupCount
in class CacheSimpleConfig
asyncBackupCount
- the number of asynchronous synchronous backups to setCacheSimpleConfig.setBackupCount(int)
,
CacheSimpleConfig.getAsyncBackupCount()
public CacheSimpleConfig setBackupCount(int backupCount)
CacheSimpleConfig
ICache
.setBackupCount
in class CacheSimpleConfig
backupCount
- the new backupCountpublic CacheSimpleConfig setCacheEntryListeners(List<CacheSimpleEntryListenerConfig> cacheEntryListeners)
CacheSimpleConfig
CacheSimpleEntryListenerConfig
for this ICache
.setCacheEntryListeners
in class CacheSimpleConfig
cacheEntryListeners
- list of CacheSimpleEntryListenerConfig
CacheSimpleConfig
instancepublic CacheSimpleConfig setCacheLoaderFactory(String cacheLoaderFactory)
CacheSimpleConfig
CacheLoader
.setCacheLoaderFactory
in class CacheSimpleConfig
cacheLoaderFactory
- the factory to set for this CacheLoader
public CacheSimpleConfig setCacheWriterFactory(String cacheWriterFactory)
CacheSimpleConfig
CacheWriter
.setCacheWriterFactory
in class CacheSimpleConfig
cacheWriterFactory
- the factory to set for this CacheWriter
public CacheSimpleConfig setEvictionConfig(EvictionConfig evictionConfig)
CacheSimpleConfig
ICache
.setEvictionConfig
in class CacheSimpleConfig
evictionConfig
- the eviction configuration to setpublic CacheSimpleConfig setExpiryPolicyFactoryConfig(CacheSimpleConfig.ExpiryPolicyFactoryConfig expiryPolicyFactoryConfig)
CacheSimpleConfig
ExpiryPolicy
.setExpiryPolicyFactoryConfig
in class CacheSimpleConfig
expiryPolicyFactoryConfig
- the factory configuration to set for this ExpiryPolicy
public CacheSimpleConfig setExpiryPolicyFactory(String className)
CacheSimpleConfig
ExpiryPolicy
.setExpiryPolicyFactory
in class CacheSimpleConfig
className
- the factory to set for this ExpiryPolicy
public CacheSimpleConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
CacheSimpleConfig
ICache
.setInMemoryFormat
in class CacheSimpleConfig
inMemoryFormat
- the InMemory Formatpublic CacheSimpleConfig setKeyType(String keyType)
CacheSimpleConfig
ICache
.setKeyType
in class CacheSimpleConfig
keyType
- the key type to set for this ICache
public CacheSimpleConfig setManagementEnabled(boolean managementEnabled)
CacheSimpleConfig
ICache
.setManagementEnabled
in class CacheSimpleConfig
managementEnabled
- true
to enable cache management, false
to disablepublic CacheSimpleConfig setName(String name)
CacheSimpleConfig
ICache
.setName
in interface NamedConfig
setName
in class CacheSimpleConfig
name
- the name to set for this ICache
public CacheSimpleConfig setReadThrough(boolean readThrough)
CacheSimpleConfig
setReadThrough
in class CacheSimpleConfig
readThrough
- true
to enable read-through for this ICache
,
false
to disablepublic CacheSimpleConfig setStatisticsEnabled(boolean statisticsEnabled)
CacheSimpleConfig
ICache
.setStatisticsEnabled
in class CacheSimpleConfig
statisticsEnabled
- true
to enable cache statistics, false
to disablepublic CacheSimpleConfig setValueType(String valueType)
CacheSimpleConfig
ICache
.setValueType
in class CacheSimpleConfig
valueType
- the value type to set for this ICache
public CacheSimpleConfig setWriteThrough(boolean writeThrough)
CacheSimpleConfig
ICache
: a write to the queue also loads
the entry into the data store.setWriteThrough
in class CacheSimpleConfig
writeThrough
- true
to enable write-through, false
to disablepublic CacheSimpleConfig addEntryListenerConfig(CacheSimpleEntryListenerConfig listenerConfig)
CacheSimpleConfig
CacheSimpleEntryListenerConfig
to this ICache
.addEntryListenerConfig
in class CacheSimpleConfig
CacheSimpleConfig
instancepublic void setWanReplicationRef(WanReplicationRef wanReplicationRef)
CacheSimpleConfig
setWanReplicationRef
in class CacheSimpleConfig
wanReplicationRef
- the WAN target replication referencepublic CacheSimpleConfig setQuorumName(String quorumName)
CacheSimpleConfig
setQuorumName
in class CacheSimpleConfig
quorumName
- name of the desired quorumpublic void setMergePolicy(String mergePolicy)
CacheSimpleConfig
CacheMergePolicy
implementation to this cache config.setMergePolicy
in class CacheSimpleConfig
mergePolicy
- the class name of CacheMergePolicy
implementation
to be set to this cache configpublic CacheSimpleConfig addCachePartitionLostListenerConfig(CachePartitionLostListenerConfig listenerConfig)
CacheSimpleConfig
addCachePartitionLostListenerConfig
in class CacheSimpleConfig
listenerConfig
- CachePartitionLostListenerConfig to be addedpublic CacheSimpleConfig setPartitionLostListenerConfigs(List<CachePartitionLostListenerConfig> partitionLostListenerConfigs)
CacheSimpleConfig
setPartitionLostListenerConfigs
in class CacheSimpleConfig
partitionLostListenerConfigs
- CachePartitionLostListenerConfig listpublic void setDisablePerEntryInvalidationEvents(boolean disablePerEntryInvalidationEvents)
CacheSimpleConfig
setDisablePerEntryInvalidationEvents
in class CacheSimpleConfig
disablePerEntryInvalidationEvents
- Disables invalidation event sending behaviour if it is true
,
otherwise enables itpublic CacheSimpleConfig setHotRestartConfig(HotRestartConfig hotRestartConfig)
CacheSimpleConfig
HotRestartConfig
for this CacheSimpleConfig
setHotRestartConfig
in class CacheSimpleConfig
hotRestartConfig
- hot restart configCacheSimpleConfig
instanceCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.