com.hazelcast.config
Class QueueConfig

java.lang.Object
  extended by com.hazelcast.config.QueueConfig
Direct Known Subclasses:
QueueConfigReadOnly

public class QueueConfig
extends Object

Contains the configuration for an IQueue


Field Summary
static int DEFAULT_ASYNC_BACKUP_COUNT
          Default value of asynchronous backup count
static int DEFAULT_EMPTY_QUEUE_TTL
          Default value of time to live for empty Queue
static int DEFAULT_MAX_SIZE
          Default value of maximum size of Queue
static int DEFAULT_SYNC_BACKUP_COUNT
          Default value of sycronous backup count
 
Constructor Summary
QueueConfig()
           
QueueConfig(QueueConfig config)
           
 
Method Summary
 QueueConfig addItemListenerConfig(ItemListenerConfig listenerConfig)
           
 QueueConfigReadOnly getAsReadOnly()
           
 int getAsyncBackupCount()
           
 int getBackupCount()
           
 int getEmptyQueueTtl()
           
 List<ItemListenerConfig> getItemListenerConfigs()
           
 int getMaxSize()
           
 String getName()
           
 QueueStoreConfig getQueueStoreConfig()
           
 int getTotalBackupCount()
           
 boolean isStatisticsEnabled()
           
 QueueConfig setAsyncBackupCount(int asyncBackupCount)
           
 QueueConfig setBackupCount(int backupCount)
           
 QueueConfig setEmptyQueueTtl(int emptyQueueTtl)
           
 QueueConfig setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
           
 QueueConfig setMaxSize(int maxSize)
           
 QueueConfig setName(String name)
           
 QueueConfig setQueueStoreConfig(QueueStoreConfig queueStoreConfig)
           
 QueueConfig setStatisticsEnabled(boolean statisticsEnabled)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_MAX_SIZE

public static final int DEFAULT_MAX_SIZE
Default value of maximum size of Queue

See Also:
Constant Field Values

DEFAULT_SYNC_BACKUP_COUNT

public static final int DEFAULT_SYNC_BACKUP_COUNT
Default value of sycronous backup count

See Also:
Constant Field Values

DEFAULT_ASYNC_BACKUP_COUNT

public static final int DEFAULT_ASYNC_BACKUP_COUNT
Default value of asynchronous backup count

See Also:
Constant Field Values

DEFAULT_EMPTY_QUEUE_TTL

public static final int DEFAULT_EMPTY_QUEUE_TTL
Default value of time to live for empty Queue

See Also:
Constant Field Values
Constructor Detail

QueueConfig

public QueueConfig()

QueueConfig

public QueueConfig(QueueConfig config)
Method Detail

getAsReadOnly

public QueueConfigReadOnly getAsReadOnly()

getEmptyQueueTtl

public int getEmptyQueueTtl()

setEmptyQueueTtl

public QueueConfig setEmptyQueueTtl(int emptyQueueTtl)

getMaxSize

public int getMaxSize()

setMaxSize

public QueueConfig setMaxSize(int maxSize)

getTotalBackupCount

public int getTotalBackupCount()

getBackupCount

public int getBackupCount()

setBackupCount

public QueueConfig setBackupCount(int backupCount)

getAsyncBackupCount

public int getAsyncBackupCount()

setAsyncBackupCount

public QueueConfig setAsyncBackupCount(int asyncBackupCount)

getQueueStoreConfig

public QueueStoreConfig getQueueStoreConfig()

setQueueStoreConfig

public QueueConfig setQueueStoreConfig(QueueStoreConfig queueStoreConfig)

isStatisticsEnabled

public boolean isStatisticsEnabled()

setStatisticsEnabled

public QueueConfig setStatisticsEnabled(boolean statisticsEnabled)

getName

public String getName()
Returns:
the name

setName

public QueueConfig setName(String name)
Parameters:
name - the name to set
Returns:
this queue config

addItemListenerConfig

public QueueConfig addItemListenerConfig(ItemListenerConfig listenerConfig)

getItemListenerConfigs

public List<ItemListenerConfig> getItemListenerConfigs()

setItemListenerConfigs

public QueueConfig setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)

toString

public String toString()
Overrides:
toString in class Object


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