|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.config.CollectionConfig<T>
T
- Type of Collection such as List, Setpublic abstract class CollectionConfig<T extends CollectionConfig>
Provides configuration service for Collection.
Field Summary | |
---|---|
static int |
DEFAULT_ASYNC_BACKUP_COUNT
Asynchronous Backup Counter |
static int |
DEFAULT_MAX_SIZE
Maximum size Configuration |
static int |
DEFAULT_SYNC_BACKUP_COUNT
Synchronous Backup Counter |
Constructor Summary | |
---|---|
protected |
CollectionConfig()
|
protected |
CollectionConfig(CollectionConfig config)
|
Method Summary | |
---|---|
void |
addItemListenerConfig(ItemListenerConfig itemListenerConfig)
|
abstract T |
getAsReadOnly()
|
int |
getAsyncBackupCount()
|
int |
getBackupCount()
|
List<ItemListenerConfig> |
getItemListenerConfigs()
|
int |
getMaxSize()
|
String |
getName()
|
int |
getTotalBackupCount()
|
boolean |
isStatisticsEnabled()
|
T |
setAsyncBackupCount(int asyncBackupCount)
Sets the number of asynchronous backups. |
T |
setBackupCount(int backupCount)
Sets the number of synchronous backups. |
T |
setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
|
T |
setMaxSize(int maxSize)
|
T |
setName(String name)
|
T |
setStatisticsEnabled(boolean statisticsEnabled)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MAX_SIZE
public static final int DEFAULT_SYNC_BACKUP_COUNT
public static final int DEFAULT_ASYNC_BACKUP_COUNT
Constructor Detail |
---|
protected CollectionConfig()
protected CollectionConfig(CollectionConfig config)
Method Detail |
---|
public abstract T getAsReadOnly()
public String getName()
public T setName(String name)
public List<ItemListenerConfig> getItemListenerConfigs()
public T setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
public int getTotalBackupCount()
public int getBackupCount()
public T setBackupCount(int backupCount)
backupCount
- the number of synchronous backups to set
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 backupssetAsyncBackupCount(int)
public int getAsyncBackupCount()
public T 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 getMaxSize()
public T setMaxSize(int maxSize)
public boolean isStatisticsEnabled()
public T setStatisticsEnabled(boolean statisticsEnabled)
public void addItemListenerConfig(ItemListenerConfig itemListenerConfig)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |