Class ConsumerPool
Inheritance
object
ConsumerPool
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Kafka
Assembly: Volo.Abp.Kafka.dll
Syntax
public class ConsumerPool : IConsumerPool, IDisposable, ISingletonDependency
Constructors
ConsumerPool(IOptions<AbpKafkaOptions>)
Declaration
public ConsumerPool(IOptions<AbpKafkaOptions> options)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Options.IOptions<TOptions><AbpKafkaOptions> | options |
Properties
Consumers
Declaration
protected ConcurrentDictionary<string, Lazy<IConsumer<string, byte[]>>> Consumers { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue><string, System.Lazy<T><Confluent.Kafka.IConsumer<,><string, byte[]>>> |
Logger
Declaration
public ILogger<ConsumerPool> Logger { get; set; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.Logging.ILogger<TCategoryName><ConsumerPool> |
Options
Declaration
protected AbpKafkaOptions Options { get; }
Property Value
| Type | Description |
|---|---|
| AbpKafkaOptions |
TotalDisposeWaitDuration
Declaration
protected TimeSpan TotalDisposeWaitDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan |
Methods
Dispose()
Declaration
public void Dispose()
Get(string, string)
Declaration
public virtual IConsumer<string, byte[]> Get(string groupId, string connectionName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | groupId | |
| string | connectionName |
Returns
| Type | Description |
|---|---|
| Confluent.Kafka.IConsumer<,><string, byte[]> |
Implements
System.IDisposable