|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.config.CacheSimpleConfig
public class CacheSimpleConfig
Simple configuration to hold parsed xml configuration.
Field Summary | |
---|---|
static int |
DEFAULT_BACKUP_COUNT
The number of default backup counter |
static EvictionPolicy |
DEFAULT_EVICTION_POLICY
Default Eviction Policy. |
static InMemoryFormat |
DEFAULT_IN_MEMORY_FORMAT
Default InMemory Format. |
static int |
MAX_BACKUP_COUNT
The number of maximum backup counter |
static int |
MIN_BACKUP_COUNT
The number of minimum backup counter |
Constructor Summary | |
---|---|
CacheSimpleConfig()
|
|
CacheSimpleConfig(CacheSimpleConfig cacheSimpleConfig)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MIN_BACKUP_COUNT
public static final int MAX_BACKUP_COUNT
public static final int DEFAULT_BACKUP_COUNT
public static final InMemoryFormat DEFAULT_IN_MEMORY_FORMAT
public static final EvictionPolicy DEFAULT_EVICTION_POLICY
Constructor Detail |
---|
public CacheSimpleConfig(CacheSimpleConfig cacheSimpleConfig)
public CacheSimpleConfig()
Method Detail |
---|
public CacheSimpleConfig getAsReadOnly()
public String getName()
public CacheSimpleConfig setName(String name)
public String getKeyType()
public CacheSimpleConfig setKeyType(String keyType)
public String getValueType()
public CacheSimpleConfig setValueType(String valueType)
public boolean isStatisticsEnabled()
public CacheSimpleConfig setStatisticsEnabled(boolean statisticsEnabled)
public boolean isManagementEnabled()
public CacheSimpleConfig setManagementEnabled(boolean managementEnabled)
public boolean isReadThrough()
public CacheSimpleConfig setReadThrough(boolean readThrough)
public boolean isWriteThrough()
public CacheSimpleConfig setWriteThrough(boolean writeThrough)
public String getCacheLoaderFactory()
public CacheSimpleConfig setCacheLoaderFactory(String cacheLoaderFactory)
public String getCacheWriterFactory()
public CacheSimpleConfig setCacheWriterFactory(String cacheWriterFactory)
public String getExpiryPolicyFactory()
public CacheSimpleConfig setExpiryPolicyFactory(String expiryPolicyFactory)
public CacheSimpleConfig addEntryListenerConfig(CacheSimpleEntryListenerConfig listenerConfig)
public List<CacheSimpleEntryListenerConfig> getCacheEntryListeners()
public CacheSimpleConfig setCacheEntryListeners(List<CacheSimpleEntryListenerConfig> cacheEntryListeners)
public int getAsyncBackupCount()
public CacheSimpleConfig setAsyncBackupCount(int asyncBackupCount)
asyncBackupCount
- the number of asynchronous synchronous backups to set
IllegalArgumentException
- if asyncBackupCount smaller than 0,
or larger than the maximum number of backup
or the sum of the backups and async backups is larger than the maximum number of backupssetBackupCount(int)
,
getAsyncBackupCount()
public int getBackupCount()
public CacheSimpleConfig setBackupCount(int backupCount)
backupCount
- the new backupCount
new
- IllegalArgumentException if backupCount smaller than 0,
or larger than the maximum number of backup
or the sum of the backups and async backups is larger than the maximum number of backupspublic InMemoryFormat getInMemoryFormat()
public CacheSimpleConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
public EvictionConfig getEvictionConfig()
public CacheSimpleConfig setEvictionConfig(EvictionConfig evictionConfig)
public WanReplicationRef getWanReplicationRef()
public void setWanReplicationRef(WanReplicationRef wanReplicationRef)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |