Skip to content

Commit c3cd117

Browse files
Merge pull request #905 from danielmarbach/rename-processingconcurrency
Rename ProcessingConcurrency to ConsumerDispatchConcurrency
2 parents ce3e31f + cdd207d commit c3cd117

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

projects/RabbitMQ.Client/client/api/ConnectionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public sealed class ConnectionFactory : ConnectionFactoryBase, IAsyncConnectionF
183183
/// </summary>
184184
/// <remarks>For concurrency greater than one this removes the guarantee that consumers handle messages in the order they receive them.
185185
/// In addition to that consumers need to be thread/concurrency safe.</remarks>
186-
public int ProcessingConcurrency { get; set; } = 1;
186+
public int ConsumerDispatchConcurrency { get; set; } = 1;
187187

188188
/// <summary>The host to connect to.</summary>
189189
public string HostName { get; set; } = "localhost";

projects/RabbitMQ.Client/client/api/IConnectionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,6 @@ public interface IConnectionFactory
189189
/// </summary>
190190
/// <remarks>For concurrency greater than one this removes the guarantee that consumers handle messages in the order they receive them.
191191
/// In addition to that consumers need to be thread/concurrency safe.</remarks>
192-
int ProcessingConcurrency { get; set; }
192+
int ConsumerDispatchConcurrency { get; set; }
193193
}
194194
}

projects/RabbitMQ.Client/client/impl/Connection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ public Connection(IConnectionFactory factory, bool insist, IFrameHandler frameHa
112112

113113
if (factory is IAsyncConnectionFactory asyncConnectionFactory && asyncConnectionFactory.DispatchConsumersAsync)
114114
{
115-
ConsumerWorkService = new AsyncConsumerWorkService(factory.ProcessingConcurrency);
115+
ConsumerWorkService = new AsyncConsumerWorkService(factory.ConsumerDispatchConcurrency);
116116
}
117117
else
118118
{
119-
ConsumerWorkService = new ConsumerWorkService(factory.ProcessingConcurrency);
119+
ConsumerWorkService = new ConsumerWorkService(factory.ConsumerDispatchConcurrency);
120120
}
121121

122122
_sessionManager = new SessionManager(this, 0);

projects/Unit/APIApproval.Approve.verified.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ namespace RabbitMQ.Client
8383
public bool AutomaticRecoveryEnabled { get; set; }
8484
public System.Collections.Generic.IDictionary<string, object> ClientProperties { get; set; }
8585
public string ClientProvidedName { get; set; }
86+
public int ConsumerDispatchConcurrency { get; set; }
8687
public System.TimeSpan ContinuationTimeout { get; set; }
8788
public bool DispatchConsumersAsync { get; set; }
8889
public RabbitMQ.Client.AmqpTcpEndpoint Endpoint { get; set; }
@@ -92,7 +93,6 @@ namespace RabbitMQ.Client
9293
public System.TimeSpan NetworkRecoveryInterval { get; set; }
9394
public string Password { get; set; }
9495
public int Port { get; set; }
95-
public int ProcessingConcurrency { get; set; }
9696
public ushort RequestedChannelMax { get; set; }
9797
public System.TimeSpan RequestedConnectionTimeout { get; set; }
9898
public uint RequestedFrameMax { get; set; }
@@ -334,10 +334,10 @@ namespace RabbitMQ.Client
334334
{
335335
System.Collections.Generic.IDictionary<string, object> ClientProperties { get; set; }
336336
string ClientProvidedName { get; set; }
337+
int ConsumerDispatchConcurrency { get; set; }
337338
System.TimeSpan ContinuationTimeout { get; set; }
338339
System.TimeSpan HandshakeContinuationTimeout { get; set; }
339340
string Password { get; set; }
340-
int ProcessingConcurrency { get; set; }
341341
ushort RequestedChannelMax { get; set; }
342342
uint RequestedFrameMax { get; set; }
343343
System.TimeSpan RequestedHeartbeat { get; set; }

projects/Unit/TestAsyncConsumer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void TestBasicRoundtrip()
8585
[Test]
8686
public async Task TestBasicRoundtripConcurrent()
8787
{
88-
var cf = new ConnectionFactory{ DispatchConsumersAsync = true, ProcessingConcurrency = 2 };
88+
var cf = new ConnectionFactory{ DispatchConsumersAsync = true, ConsumerDispatchConcurrency = 2 };
8989
using(IConnection c = cf.CreateConnection())
9090
using(IModel m = c.CreateModel())
9191
{

projects/Unit/TestConsumer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class TestConsumer
1313
[Test]
1414
public async Task TestBasicRoundtripConcurrent()
1515
{
16-
var cf = new ConnectionFactory{ ProcessingConcurrency = 2 };
16+
var cf = new ConnectionFactory{ ConsumerDispatchConcurrency = 2 };
1717
using(IConnection c = cf.CreateConnection())
1818
using(IModel m = c.CreateModel())
1919
{

0 commit comments

Comments
 (0)