Table of Contents

Class ConsumerRecords<K, V, TJVMK, TJVMV>

Namespace
MASES.KNet.Consumer
Assembly
MASES.KNet.dll

KNet extension of ConsumerRecords<K, V>

public class ConsumerRecords<K, V, TJVMK, TJVMV> : IKNetInnerReference<ConsumerRecords<TJVMK, TJVMV>>, IEnumerable<ConsumerRecord<K, V, TJVMK, TJVMV>>, IEnumerable, IAsyncEnumerable<ConsumerRecord<K, V, TJVMK, TJVMV>>, IDisposable

Type Parameters

K

The key type

V

The value type

TJVMK

The JVM type of K

TJVMV

The JVM type of V

Inheritance
ConsumerRecords<K, V, TJVMK, TJVMV>
Implements
IEnumerable<ConsumerRecord<K, V, TJVMK, TJVMV>>
IAsyncEnumerable<ConsumerRecord<K, V, TJVMK, TJVMV>>

Properties

Count

The number of elements in ConsumerRecords<K, V, TJVMK, TJVMV>

public int Count { get; }

Property Value

int

InnerReference

The underlying inner reference used from KNet object instance

public ConsumerRecords<TJVMK, TJVMV> InnerReference { get; }

Property Value

ConsumerRecords<TJVMK, TJVMV>

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

NextOffsets

public Map<TopicPartition, OffsetAndMetadata> NextOffsets { get; }

Property Value

Map<TopicPartition, OffsetAndMetadata>

Map

Partitions

public Set<TopicPartition> Partitions { get; }

Property Value

Set<TopicPartition>

Set

Methods

CheckDisposed()

Test if this instance was disposed

protected void CheckDisposed()

Exceptions

ObjectDisposedException

When this instance was disposed

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

The disposing parameter is a bool that indicates whether the method call comes from a Dispose() method (its value is true) or from a finalizer (its value is false)

Records(TopicPartition)

public List<ConsumerRecord<TJVMK, TJVMV>> Records(TopicPartition arg0)

Parameters

arg0 TopicPartition

TopicPartition

Returns

List<ConsumerRecord<TJVMK, TJVMV>>

List

Records(string)

public Iterable<ConsumerRecord<TJVMK, TJVMV>> Records(string arg0)

Parameters

arg0 string

string

Returns

Iterable<ConsumerRecord<TJVMK, TJVMV>>

Iterable of