public class CacheSimpleConfigReadOnly extends CacheSimpleConfig
CacheSimpleConfigCacheSimpleConfig.ExpiryPolicyFactoryConfigDEFAULT_BACKUP_COUNT, DEFAULT_CACHE_MERGE_POLICY, DEFAULT_EVICTION_POLICY, DEFAULT_IN_MEMORY_FORMAT, MAX_BACKUP_COUNT, MIN_BACKUP_COUNT| Constructor and Description |
|---|
CacheSimpleConfigReadOnly(CacheSimpleConfig cacheSimpleConfig) |
| Modifier and Type | Method and Description |
|---|---|
CacheSimpleConfig |
addCachePartitionLostListenerConfig(CachePartitionLostListenerConfig listenerConfig)
Adds the CachePartitionLostListenerConfig to partitionLostListenerConfigs.
|
CacheSimpleConfig |
addEntryListenerConfig(CacheSimpleEntryListenerConfig listenerConfig)
Adds
CacheSimpleEntryListenerConfig to this ICache. |
List<CacheSimpleEntryListenerConfig> |
getCacheEntryListeners()
Gets a list of
CacheSimpleEntryListenerConfig from this ICache. |
EvictionConfig |
getEvictionConfig()
Gets the eviction configuration for this
ICache. |
CacheSimpleConfig |
setAsyncBackupCount(int asyncBackupCount)
Sets the number of asynchronous backups for this
ICache. |
CacheSimpleConfig |
setBackupCount(int backupCount)
Sets the number of synchronous backups for this
ICache. |
CacheSimpleConfig |
setCacheEntryListeners(List<CacheSimpleEntryListenerConfig> cacheEntryListeners)
Sets a list of
CacheSimpleEntryListenerConfig for this ICache. |
CacheSimpleConfig |
setCacheLoaderFactory(String cacheLoaderFactory)
Sets the factory for this
CacheLoader. |
CacheSimpleConfig |
setCacheWriterFactory(String cacheWriterFactory)
Sets the factory for this
CacheWriter. |
CacheSimpleConfig |
setEvictionConfig(EvictionConfig evictionConfig)
Sets the eviction configuration for this
ICache. |
CacheSimpleConfig |
setExpiryPolicyFactory(String className)
Sets the factory for this
ExpiryPolicy. |
CacheSimpleConfig |
setExpiryPolicyFactoryConfig(CacheSimpleConfig.ExpiryPolicyFactoryConfig expiryPolicyFactoryConfig)
Sets the factory configuration for this
ExpiryPolicy. |
CacheSimpleConfig |
setInMemoryFormat(InMemoryFormat inMemoryFormat)
Sets the InMemory Format for this
ICache. |
CacheSimpleConfig |
setKeyType(String keyType)
Sets the key type for this
ICache. |
CacheSimpleConfig |
setManagementEnabled(boolean managementEnabled)
Sets management to enabled or disabled for this
ICache. |
void |
setMergePolicy(String mergePolicy)
Sets the class name of
CacheMergePolicy
implementation to this cache config. |
CacheSimpleConfig |
setName(String name)
Sets the name of this
ICache. |
CacheSimpleConfig |
setPartitionLostListenerConfigs(List<CachePartitionLostListenerConfig> partitionLostListenerConfigs)
Sets the PartitionLostListenerConfigs.
|
CacheSimpleConfig |
setQuorumName(String quorumName)
Associates this cache configuration to a quorum.
|
CacheSimpleConfig |
setReadThrough(boolean readThrough)
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)
Sets statistics to enabled or disabled for this
ICache. |
CacheSimpleConfig |
setValueType(String valueType)
Sets the value type for this
ICache. |
void |
setWanReplicationRef(WanReplicationRef wanReplicationRef)
Sets the WAN target replication reference.
|
CacheSimpleConfig |
setWriteThrough(boolean writeThrough)
Enables or disables write-through for this
ICache: a write to the queue also loads
the entry into the data store. |
getAsReadOnly, getAsyncBackupCount, getBackupCount, getCacheLoaderFactory, getCacheWriterFactory, getExpiryPolicyFactoryConfig, getHotRestartConfig, getInMemoryFormat, getKeyType, getMergePolicy, getName, getPartitionLostListenerConfigs, getQuorumName, getValueType, getWanReplicationRef, isManagementEnabled, isReadThrough, isStatisticsEnabled, isWriteThrough, setHotRestartConfigpublic CacheSimpleConfigReadOnly(CacheSimpleConfig cacheSimpleConfig)
public EvictionConfig getEvictionConfig()
CacheSimpleConfigICache.getEvictionConfig in class CacheSimpleConfigpublic List<CacheSimpleEntryListenerConfig> getCacheEntryListeners()
CacheSimpleConfigCacheSimpleEntryListenerConfig from this ICache.getCacheEntryListeners in class CacheSimpleConfigCacheSimpleEntryListenerConfig.public CacheSimpleConfig setAsyncBackupCount(int asyncBackupCount)
CacheSimpleConfigICache.setAsyncBackupCount in class CacheSimpleConfigasyncBackupCount - the number of asynchronous synchronous backups to set.CacheSimpleConfig.setBackupCount(int),
CacheSimpleConfig.getAsyncBackupCount()public CacheSimpleConfig setBackupCount(int backupCount)
CacheSimpleConfigICache.setBackupCount in class CacheSimpleConfigbackupCount - the new backupCountpublic CacheSimpleConfig setCacheEntryListeners(List<CacheSimpleEntryListenerConfig> cacheEntryListeners)
CacheSimpleConfigCacheSimpleEntryListenerConfig for this ICache.setCacheEntryListeners in class CacheSimpleConfigcacheEntryListeners - list of CacheSimpleEntryListenerConfig.CacheSimpleConfig instance.public CacheSimpleConfig setCacheLoaderFactory(String cacheLoaderFactory)
CacheSimpleConfigCacheLoader.setCacheLoaderFactory in class CacheSimpleConfigcacheLoaderFactory - The factory to set for this CacheLoader.public CacheSimpleConfig setCacheWriterFactory(String cacheWriterFactory)
CacheSimpleConfigCacheWriter.setCacheWriterFactory in class CacheSimpleConfigcacheWriterFactory - The factory to set for this CacheWriter.public CacheSimpleConfig setEvictionConfig(EvictionConfig evictionConfig)
CacheSimpleConfigICache.setEvictionConfig in class CacheSimpleConfigevictionConfig - The eviction configuration to set.public CacheSimpleConfig setExpiryPolicyFactoryConfig(CacheSimpleConfig.ExpiryPolicyFactoryConfig expiryPolicyFactoryConfig)
CacheSimpleConfigExpiryPolicy.setExpiryPolicyFactoryConfig in class CacheSimpleConfigexpiryPolicyFactoryConfig - The factory configuration to set for this
ExpiryPolicy.public CacheSimpleConfig setExpiryPolicyFactory(String className)
CacheSimpleConfigExpiryPolicy.setExpiryPolicyFactory in class CacheSimpleConfigclassName - The factory to set for this
ExpiryPolicy.public CacheSimpleConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
CacheSimpleConfigICache.setInMemoryFormat in class CacheSimpleConfiginMemoryFormat - The InMemory Format.public CacheSimpleConfig setKeyType(String keyType)
CacheSimpleConfigICache.setKeyType in class CacheSimpleConfigkeyType - The key type to set for this ICache.public CacheSimpleConfig setManagementEnabled(boolean managementEnabled)
CacheSimpleConfigICache.setManagementEnabled in class CacheSimpleConfigmanagementEnabled - True to enable cache management, false to disable.public CacheSimpleConfig setName(String name)
CacheSimpleConfigICache.setName in class CacheSimpleConfigname - The name to set for this ICache.public CacheSimpleConfig setReadThrough(boolean readThrough)
CacheSimpleConfigsetReadThrough in class CacheSimpleConfigreadThrough - True to enable read-through for this ICache, false to disable.public CacheSimpleConfig setStatisticsEnabled(boolean statisticsEnabled)
CacheSimpleConfigICache.setStatisticsEnabled in class CacheSimpleConfigstatisticsEnabled - True to enable cache statistics, false to disable.public CacheSimpleConfig setValueType(String valueType)
CacheSimpleConfigICache.setValueType in class CacheSimpleConfigvalueType - The value type to set for this ICache.public CacheSimpleConfig setWriteThrough(boolean writeThrough)
CacheSimpleConfigICache: a write to the queue also loads
the entry into the data store.setWriteThrough in class CacheSimpleConfigwriteThrough - True to enable write-through, false to disable.public CacheSimpleConfig addEntryListenerConfig(CacheSimpleEntryListenerConfig listenerConfig)
CacheSimpleConfigCacheSimpleEntryListenerConfig to this ICache.addEntryListenerConfig in class CacheSimpleConfigCacheSimpleConfig instance.public void setWanReplicationRef(WanReplicationRef wanReplicationRef)
CacheSimpleConfigsetWanReplicationRef in class CacheSimpleConfigwanReplicationRef - the WAN target replication reference.public CacheSimpleConfig setQuorumName(String quorumName)
CacheSimpleConfigsetQuorumName in class CacheSimpleConfigquorumName - name of the desired quorum.public void setMergePolicy(String mergePolicy)
CacheSimpleConfigCacheMergePolicy
implementation to this cache config.setMergePolicy in class CacheSimpleConfigmergePolicy - the class name of CacheMergePolicy
implementation to be set to this cache configpublic CacheSimpleConfig addCachePartitionLostListenerConfig(CachePartitionLostListenerConfig listenerConfig)
CacheSimpleConfigaddCachePartitionLostListenerConfig in class CacheSimpleConfiglistenerConfig - CachePartitionLostListenerConfig to be added.public CacheSimpleConfig setPartitionLostListenerConfigs(List<CachePartitionLostListenerConfig> partitionLostListenerConfigs)
CacheSimpleConfigsetPartitionLostListenerConfigs in class CacheSimpleConfigpartitionLostListenerConfigs - CachePartitionLostListenerConfig list.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.