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()
AMQPConsumerConfiguration
null
if no explicit cluster is
configured.getQueueName
in interface AMQPConsumerConfiguration
null
to revert to a defaultpublic Boolean getExclusive()
AMQPConsumerConfiguration
null
indicated that
no explicit preference is provided, and a default should be used.getExclusive
in interface AMQPConsumerConfiguration
public Integer getPrefetchCount()
AMQPConsumerConfiguration
null
means no specific value is provided and a default should be used.getPrefetchCount
in interface AMQPConsumerConfiguration
Copyright © 2010-2014. All Rights Reserved.