Class ConsumerRecords<K, V, TJVMK, TJVMV>
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
KThe key type
VThe value type
TJVMKThe JVM type of
KTJVMVThe JVM type of
V
- Inheritance
-
ConsumerRecords<K, V, TJVMK, TJVMV>
- Implements
-
IKNetInnerReference<ConsumerRecords<TJVMK, TJVMV>>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
InnerReference
The underlying inner reference used from KNet object instance
public ConsumerRecords<TJVMK, TJVMV> InnerReference { get; }
Property Value
- ConsumerRecords<TJVMK, TJVMV>
IsEmpty
true if the ConsumerRecords<K, V, TJVMK, TJVMV> is empty
public bool IsEmpty { get; }
Property Value
NextOffsets
public Map<TopicPartition, OffsetAndMetadata> NextOffsets { get; }
Property Value
Partitions
public Set<TopicPartition> Partitions { get; }
Property Value
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)
Implements the pattern described in https://learn.microsoft.com/en-en/dotnet/standard/garbage-collection/implementing-dispose
protected virtual void Dispose(bool disposing)
Parameters
disposingboolThe 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
Returns
- List<ConsumerRecord<TJVMK, TJVMV>>
Records(string)
public Iterable<ConsumerRecord<TJVMK, TJVMV>> Records(string arg0)
Parameters
Returns
- Iterable<ConsumerRecord<TJVMK, TJVMV>>
Iterable of