Browse Source

Support custom multiple producer threads for sending。 #731

master
Savorboard 4 years ago
parent
commit
d74d15ef1a
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/DotNetCore.CAP/CAP.Options.cs

+ 7
- 0
src/DotNetCore.CAP/CAP.Options.cs View File

@@ -21,6 +21,7 @@ namespace DotNetCore.CAP
FailedRetryInterval = 60;
FailedRetryCount = 50;
ConsumerThreadCount = 1;
ProducerThreadCount = 1;
Extensions = new List<ICapOptionsExtension>();
Version = "v1";
DefaultGroup = "cap.queue." + Assembly.GetEntryAssembly()?.GetName().Name.ToLower();
@@ -67,6 +68,12 @@ namespace DotNetCore.CAP
/// </summary>
public int ConsumerThreadCount { get; set; }

/// <summary>
/// The number of producer thread connections.
/// Default is 1
/// </summary>
public int ProducerThreadCount { get; set; }

/// <summary>
/// Registers an extension that will be executed when building services.
/// </summary>


Loading…
Cancel
Save