summaryrefslogtreecommitdiff
path: root/dotnet/Qpid.Messaging/MessageConsumerBuilder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'dotnet/Qpid.Messaging/MessageConsumerBuilder.cs')
-rw-r--r--dotnet/Qpid.Messaging/MessageConsumerBuilder.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/dotnet/Qpid.Messaging/MessageConsumerBuilder.cs b/dotnet/Qpid.Messaging/MessageConsumerBuilder.cs
index 4166dd0137..2d6f76d639 100644
--- a/dotnet/Qpid.Messaging/MessageConsumerBuilder.cs
+++ b/dotnet/Qpid.Messaging/MessageConsumerBuilder.cs
@@ -18,25 +18,25 @@
* under the License.
*
*/
-namespace Qpid.Messaging
+namespace Apache.Qpid.Messaging
{
public class MessageConsumerBuilder
{
- public const int DEFAULT_PREFETCH_HIGH = 5000;
-
private bool _noLocal = false;
private bool _exclusive = false;
private bool _durable = false;
private string _subscriptionName = null;
private IChannel _channel;
private readonly string _queueName;
- private int _prefetchLow = 2500;
- private int _prefetchHigh = DEFAULT_PREFETCH_HIGH;
+ private int _prefetchLow;
+ private int _prefetchHigh;
public MessageConsumerBuilder(IChannel channel, string queueName)
{
_channel = channel;
_queueName = queueName;
+ _prefetchHigh = _channel.DefaultPrefetchHigh;
+ _prefetchLow = _channel.DefaultPrefetchLow;
}
public MessageConsumerBuilder WithPrefetchLow(int prefetchLow)