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