Show / Hide Table of Contents

Class ConsumerPool

Inheritance
object
ConsumerPool
Implements
IConsumerPool
IDisposable
ISingletonDependency
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
IOptions<AbpKafkaOptions> options

Properties

Consumers

Declaration
protected ConcurrentDictionary<string, Lazy<IConsumer<string, byte[]>>> Consumers { get; }
Property Value
Type Description
ConcurrentDictionary<string, Lazy<IConsumer<string, 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
string groupId
string connectionName
Returns
Type Description
IConsumer<string, byte[]>

Implements

IConsumerPool
IDisposable
ISingletonDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform