Class ConsumerRecord<K, V, TJVMK, TJVMV>
KNet extension of ConsumerRecord<K, V>
public class ConsumerRecord<K, V, TJVMK, TJVMV> : IKNetInnerReference<ConsumerRecord<TJVMK, TJVMV>>, IGenericSerDesFactoryApplier, IDisposable
Type Parameters
KThe key type
VThe value type
TJVMKThe JVM type of
KTJVMVThe JVM type of
V
- Inheritance
-
ConsumerRecord<K, V, TJVMK, TJVMV>
- Implements
-
IKNetInnerReference<ConsumerRecord<TJVMK, TJVMV>>
Properties
DateTime
public DateTime DateTime { get; }
Property Value
Headers
public Headers Headers { get; }
Property Value
InnerReference
The underlying inner reference used from KNet object instance
public ConsumerRecord<TJVMK, TJVMV> InnerReference { get; }
Property Value
- ConsumerRecord<TJVMK, TJVMV>
Key
public K Key { get; }
Property Value
- K
K
LeaderEpoch
public int? LeaderEpoch { get; }
Property Value
Offset
public long Offset { get; }
Property Value
Partition
public int Partition { get; }
Property Value
SerializedKeySize
public int SerializedKeySize { get; }
Property Value
SerializedValueSize
public int SerializedValueSize { get; }
Property Value
Timestamp
public long Timestamp { get; }
Property Value
TimestampType
public TimestampType TimestampType { get; }
Property Value
Topic
public string Topic { get; }
Property Value
Value
public V Value { get; }
Property Value
- V
V
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)
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.