public class QueueConfigReadOnly extends QueueConfig
IQueue
.DEFAULT_ASYNC_BACKUP_COUNT, DEFAULT_EMPTY_QUEUE_TTL, DEFAULT_MAX_SIZE, DEFAULT_SYNC_BACKUP_COUNT
Modifier and Type | Method and Description |
---|---|
QueueConfig |
addItemListenerConfig(ItemListenerConfig listenerConfig)
Deprecated.
Add an item listener configuration to this queue.
|
List<ItemListenerConfig> |
getItemListenerConfigs()
Deprecated.
Get the list of item listener configurations for this queue.
|
QueueStoreConfig |
getQueueStoreConfig()
Deprecated.
Get the QueueStore (load and store queue items from/to a database) configuration.
|
QueueConfig |
setAsyncBackupCount(int asyncBackupCount)
Deprecated.
Sets the number of asynchronous backups.
|
QueueConfig |
setBackupCount(int backupCount)
Deprecated.
Sets the number of synchronous backups for this queue.
|
QueueConfig |
setEmptyQueueTtl(int emptyQueueTtl)
Deprecated.
Sets the TTL (time to live) for emptying the Queue.
|
QueueConfig |
setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
Deprecated.
Set the list of item listener configurations for this queue.
|
QueueConfig |
setMaxSize(int maxSize)
Deprecated.
Sets the maximum size of the Queue.
|
QueueConfig |
setName(String name)
Deprecated.
Set the name for this queue.
|
QueueConfig |
setQueueStoreConfig(QueueStoreConfig queueStoreConfig)
Deprecated.
Set the QueueStore (load and store queue items from/to a database) configuration.
|
QueueConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Deprecated.
Enables or disables statistics for this queue.
|
getAsReadOnly, getAsyncBackupCount, getBackupCount, getEmptyQueueTtl, getMaxSize, getName, getQuorumName, getTotalBackupCount, isStatisticsEnabled, setQuorumName, toString
public List<ItemListenerConfig> getItemListenerConfigs()
QueueConfig
getItemListenerConfigs
in class QueueConfig
public QueueStoreConfig getQueueStoreConfig()
QueueConfig
getQueueStoreConfig
in class QueueConfig
public QueueConfig setName(String name)
QueueConfig
setName
in class QueueConfig
name
- The name to set for this queue.public QueueConfig setEmptyQueueTtl(int emptyQueueTtl)
QueueConfig
setEmptyQueueTtl
in class QueueConfig
emptyQueueTtl
- Set the TTL (time to live) for emptying the Queue to this value.public QueueConfig setMaxSize(int maxSize)
QueueConfig
setMaxSize
in class QueueConfig
maxSize
- Set the maximum size of the Queue to this value.public QueueConfig setBackupCount(int backupCount)
QueueConfig
setBackupCount
in class QueueConfig
backupCount
- the number of synchronous backups to setQueueConfig.setAsyncBackupCount(int)
public QueueConfig setAsyncBackupCount(int asyncBackupCount)
QueueConfig
setAsyncBackupCount
in class QueueConfig
asyncBackupCount
- the number of asynchronous synchronous backups to setQueueConfig.setBackupCount(int)
,
QueueConfig.getAsyncBackupCount()
public QueueConfig setQueueStoreConfig(QueueStoreConfig queueStoreConfig)
QueueConfig
setQueueStoreConfig
in class QueueConfig
queueStoreConfig
- Set the QueueStore configuration to this configuration.public QueueConfig setStatisticsEnabled(boolean statisticsEnabled)
QueueConfig
setStatisticsEnabled
in class QueueConfig
statisticsEnabled
- True to enable statistics for this queue, false to disable.public QueueConfig addItemListenerConfig(ItemListenerConfig listenerConfig)
QueueConfig
addItemListenerConfig
in class QueueConfig
listenerConfig
- The item listener configuration to add to this queue.public QueueConfig setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
QueueConfig
setItemListenerConfigs
in class QueueConfig
listenerConfigs
- The list of item listener configurations to set for this queue.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.