Class ConsumerRecords<K, V, TJVMK, TJVMV>
KNet extension of ConsumerRecords<K, V>
public sealed 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
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
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