Table of Contents

Class ConsumerRecord<K, V, TJVMK, TJVMV>

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

KNet extension of ConsumerRecord<K, V>

public class ConsumerRecord<K, V, TJVMK, TJVMV> : IKNetInnerReference<ConsumerRecord<TJVMK, TJVMV>>, IGenericSerDesFactoryApplier, IDisposable

Type Parameters

K

The key type

V

The value type

TJVMK

The JVM type of K

TJVMV

The JVM type of V

Inheritance
ConsumerRecord<K, V, TJVMK, TJVMV>
Implements

Properties

DateTime

public DateTime DateTime { get; }

Property Value

DateTime

Headers

public Headers Headers { get; }

Property Value

Headers

Headers

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

int?

Optional

Offset

public long Offset { get; }

Property Value

long

long

Partition

public int Partition { get; }

Property Value

int

int

SerializedKeySize

public int SerializedKeySize { get; }

Property Value

int

int

SerializedValueSize

public int SerializedValueSize { get; }

Property Value

int

int

Timestamp

public long Timestamp { get; }

Property Value

long

long

TimestampType

public TimestampType TimestampType { get; }

Property Value

TimestampType

TimestampType

Topic

public string Topic { get; }

Property Value

string

String

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)

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)

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.