Class ProducerPool
Inheritance
System.Object
ProducerPool
Implements
IDisposable
ISingletonDependency
Assembly: Volo.Abp.Kafka.dll
Syntax
public class ProducerPool : object, IProducerPool, IDisposable, ISingletonDependency
Constructors
ProducerPool(IOptions<AbpKafkaOptions>)
Declaration
public ProducerPool(IOptions<AbpKafkaOptions> options)
Parameters
Properties
Logger
Declaration
public ILogger<ProducerPool> Logger { get; set; }
Property Value
Options
Declaration
protected AbpKafkaOptions Options { get; }
Property Value
Producers
Declaration
protected ConcurrentDictionary<string, IProducer<string, byte[]>> Producers { get; }
Property Value
| Type |
Description |
| ConcurrentDictionary<System.String, IProducer<System.String, System.Byte[]>> |
|
TotalDisposeWaitDuration
Declaration
protected TimeSpan TotalDisposeWaitDuration { get; set; }
Property Value
| Type |
Description |
| TimeSpan |
|
Methods
Dispose()
Declaration
Get(String)
Declaration
public virtual IProducer<string, byte[]> Get(string connectionName = null)
Parameters
| Type |
Name |
Description |
| System.String |
connectionName |
|
Returns
| Type |
Description |
| IProducer<System.String, System.Byte[]> |
|
Implements
IDisposable
ISingletonDependency
Extension Methods