Show / Hide Table of Contents

Class ConsumerPool

Inheritance
System.Object
ConsumerPool
Implements
IConsumerPool
IDisposable
ISingletonDependency
Namespace: Volo.Abp.Kafka
Assembly: Volo.Abp.Kafka.dll
Syntax
public class ConsumerPool : object, IConsumerPool, IDisposable, ISingletonDependency

Constructors

ConsumerPool(IOptions<AbpKafkaOptions>)

Declaration
public ConsumerPool(IOptions<AbpKafkaOptions> options)
Parameters
Type Name Description
IOptions<AbpKafkaOptions> options

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
Type Description
ILogger<ConsumerPool>

Options

Declaration
protected AbpKafkaOptions Options { get; }
Property Value
Type Description
AbpKafkaOptions

TotalDisposeWaitDuration

Declaration
protected TimeSpan TotalDisposeWaitDuration { get; set; }
Property Value
Type Description
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
System.String groupId
System.String connectionName
Returns
Type Description
IConsumer<System.String, System.Byte[]>

Implements

IConsumerPool
IDisposable
ISingletonDependency

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft