public class DefaultAMQPConsumerConfiguration extends Object implements AMQPConsumerConfiguration
AMQP_CONFIG_PROPERTY| Constructor and Description |
|---|
DefaultAMQPConsumerConfiguration(String queueName)
Initializes the configuration with the given
queueName. |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getExclusive()
Indicates whether this Cluster wishes to be an exclusive consumer on a Queue.
|
Integer |
getPrefetchCount()
Indicates how many messages this Cluster's connector may read read from the Queue before expecting messages to
be acknowledged.
|
String |
getQueueName()
Returns the Queue Name the Cluster should be connected to, or
null if no explicit cluster is
configured. |
public DefaultAMQPConsumerConfiguration(String queueName)
queueName.queueName - The name of the Queue a cluster should connect topublic String getQueueName()
AMQPConsumerConfigurationnull if no explicit cluster is
configured.getQueueName in interface AMQPConsumerConfigurationnull to revert to a defaultpublic Boolean getExclusive()
AMQPConsumerConfigurationnull indicated that
no explicit preference is provided, and a default should be used.getExclusive in interface AMQPConsumerConfigurationpublic Integer getPrefetchCount()
AMQPConsumerConfigurationnull means no specific value is provided and a default should be used.getPrefetchCount in interface AMQPConsumerConfigurationCopyright © 2010-2014. All Rights Reserved.