com.hazelcast.config
Class QueueConfigReadOnly

java.lang.Object
  extended by com.hazelcast.config.QueueConfig
      extended by com.hazelcast.config.QueueConfigReadOnly

public class QueueConfigReadOnly
extends QueueConfig

Contains the configuration for an IQueue.


Field Summary
 
Fields inherited from class com.hazelcast.config.QueueConfig
DEFAULT_ASYNC_BACKUP_COUNT, DEFAULT_EMPTY_QUEUE_TTL, DEFAULT_MAX_SIZE, DEFAULT_SYNC_BACKUP_COUNT
 
Method Summary
 QueueConfig addItemListenerConfig(ItemListenerConfig listenerConfig)
          Add an item listener configuration to this queue configuration.
 List<ItemListenerConfig> getItemListenerConfigs()
          Get the list of item listener configurations for this queue configuration.
 QueueStoreConfig getQueueStoreConfig()
          Get the QueueStore (load and store queue items from/to a database) configuration.
 QueueConfig setAsyncBackupCount(int asyncBackupCount)
          Sets the number of asynchronous backups.
 QueueConfig setBackupCount(int backupCount)
          Sets the number of synchronous backups.
 QueueConfig setEmptyQueueTtl(int emptyQueueTtl)
          Sets the TTL (time to live) for emptying the Queue.
 QueueConfig setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
          Set the list of item listener configurations for this queue configuration to this list.
 QueueConfig setMaxSize(int maxSize)
          Sets the maximum size of the Queue.
 QueueConfig setName(String name)
          Set the name for this queue configuration.
 QueueConfig setQueueStoreConfig(QueueStoreConfig queueStoreConfig)
          Set the QueueStore (load and store queue items from/to a database) configuration.
 QueueConfig setStatisticsEnabled(boolean statisticsEnabled)
          Set the statistics enabled value for this queue configuration.
 
Methods inherited from class com.hazelcast.config.QueueConfig
getAsReadOnly, getAsyncBackupCount, getBackupCount, getEmptyQueueTtl, getMaxSize, getName, getTotalBackupCount, isStatisticsEnabled, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getItemListenerConfigs

public List<ItemListenerConfig> getItemListenerConfigs()
Description copied from class: QueueConfig
Get the list of item listener configurations for this queue configuration.

Overrides:
getItemListenerConfigs in class QueueConfig
Returns:
The list of item listener configurations for this queue configuration.

getQueueStoreConfig

public QueueStoreConfig getQueueStoreConfig()
Description copied from class: QueueConfig
Get the QueueStore (load and store queue items from/to a database) configuration.

Overrides:
getQueueStoreConfig in class QueueConfig
Returns:
The QueueStore configuration.

setName

public QueueConfig setName(String name)
Description copied from class: QueueConfig
Set the name for this queue configuration.

Overrides:
setName in class QueueConfig
Parameters:
name - The name to set for this queue configuration.
Returns:
This queue configuration.

setEmptyQueueTtl

public QueueConfig setEmptyQueueTtl(int emptyQueueTtl)
Description copied from class: QueueConfig
Sets the TTL (time to live) for emptying the Queue.

Overrides:
setEmptyQueueTtl in class QueueConfig
Parameters:
emptyQueueTtl - Set the TTL (time to live) for emptying the Queue to this value.
Returns:
The Queue configuration.

setMaxSize

public QueueConfig setMaxSize(int maxSize)
Description copied from class: QueueConfig
Sets the maximum size of the Queue.

Overrides:
setMaxSize in class QueueConfig
Parameters:
maxSize - Set the maximum size of the Queue to this value.
Returns:
The Queue configuration.

setBackupCount

public QueueConfig setBackupCount(int backupCount)
Description copied from class: QueueConfig
Sets the number of synchronous backups.

Overrides:
setBackupCount in class QueueConfig
Parameters:
backupCount - the number of synchronous backups to set
Returns:
the current QueueConfig
See Also:
QueueConfig.setAsyncBackupCount(int)

setAsyncBackupCount

public QueueConfig setAsyncBackupCount(int asyncBackupCount)
Description copied from class: QueueConfig
Sets the number of asynchronous backups. 0 means no backups.

Overrides:
setAsyncBackupCount in class QueueConfig
Parameters:
asyncBackupCount - the number of asynchronous synchronous backups to set
Returns:
the updated QueueConfig
See Also:
QueueConfig.setBackupCount(int), QueueConfig.getAsyncBackupCount()

setQueueStoreConfig

public QueueConfig setQueueStoreConfig(QueueStoreConfig queueStoreConfig)
Description copied from class: QueueConfig
Set the QueueStore (load and store queue items from/to a database) configuration.

Overrides:
setQueueStoreConfig in class QueueConfig
Parameters:
queueStoreConfig - Set the QueueStore configuration to this configuration.
Returns:
The QueueStore configuration.

setStatisticsEnabled

public QueueConfig setStatisticsEnabled(boolean statisticsEnabled)
Description copied from class: QueueConfig
Set the statistics enabled value for this queue configuration.

Overrides:
setStatisticsEnabled in class QueueConfig
Parameters:
statisticsEnabled - Set to true or false to enable or disable statistics.
Returns:
The queue configuration.

addItemListenerConfig

public QueueConfig addItemListenerConfig(ItemListenerConfig listenerConfig)
Description copied from class: QueueConfig
Add an item listener configuration to this queue configuration.

Overrides:
addItemListenerConfig in class QueueConfig
Parameters:
listenerConfig - The item listener configuration to add to this queue configuration.
Returns:
This queue configuration.

setItemListenerConfigs

public QueueConfig setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
Description copied from class: QueueConfig
Set the list of item listener configurations for this queue configuration to this list.

Overrides:
setItemListenerConfigs in class QueueConfig
Parameters:
listenerConfigs - The list of item listener configurations to set for this queue configuration.
Returns:
This queue configuration.


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.