com.hazelcast.config
public class CacheSimpleConfigReadOnly extends CacheSimpleConfig
CacheSimpleConfig
CacheSimpleConfig.ExpiryPolicyFactoryConfig
DEFAULT_BACKUP_COUNT, 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 |
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 . |
CacheSimpleConfig |
setName(String name)
Sets the name of this
ICache . |
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, getInMemoryFormat, getKeyType, getName, getValueType, getWanReplicationRef, isManagementEnabled, isReadThrough, isStatisticsEnabled, isWriteThrough
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 set.CacheSimpleConfig.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
instance.public 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 set.public 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 Format.public 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 disable.public CacheSimpleConfig setName(String name)
CacheSimpleConfig
ICache
.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 disable.public CacheSimpleConfig setStatisticsEnabled(boolean statisticsEnabled)
CacheSimpleConfig
ICache
.setStatisticsEnabled
in class CacheSimpleConfig
statisticsEnabled
- True to enable cache statistics, false to disable.public 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 disable.public CacheSimpleConfig addEntryListenerConfig(CacheSimpleEntryListenerConfig listenerConfig)
CacheSimpleConfig
CacheSimpleEntryListenerConfig
to this ICache
.addEntryListenerConfig
in class CacheSimpleConfig
CacheSimpleConfig
instance.public void setWanReplicationRef(WanReplicationRef wanReplicationRef)
CacheSimpleConfig
setWanReplicationRef
in class CacheSimpleConfig
wanReplicationRef
- the Wan target replication reference.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.