Table of Contents

Class ProducerRecord<K, V>

Namespace
Org.Apache.Kafka.Clients.Producer
Assembly
MASES.KNet.dll
public class ProducerRecord<K, V> : JVMBridgeBase<ProducerRecord<K, V>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition

Type Parameters

K
V
Inheritance
ProducerRecord<K, V>
Implements
Inherited Members

Constructors

ProducerRecord()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public ProducerRecord()

ProducerRecord(String, Integer, Long, K, V)

public ProducerRecord(String arg0, Integer arg1, Long arg2, K arg3, V arg4)

Parameters

arg0 String

String

arg1 Integer

Integer

arg2 Long

Long

arg3 K

K

arg4 V

V

ProducerRecord(String, Integer, Long, K, V, Iterable<Header>)

public ProducerRecord(String arg0, Integer arg1, Long arg2, K arg3, V arg4, Iterable<Header> arg5)

Parameters

arg0 String

String

arg1 Integer

Integer

arg2 Long

Long

arg3 K

K

arg4 V

V

arg5 Iterable<Header>

Iterable

ProducerRecord(String, Integer, K, V)

public ProducerRecord(String arg0, Integer arg1, K arg2, V arg3)

Parameters

arg0 String

String

arg1 Integer

Integer

arg2 K

K

arg3 V

V

ProducerRecord(String, Integer, K, V, Iterable<Header>)

public ProducerRecord(String arg0, Integer arg1, K arg2, V arg3, Iterable<Header> arg4)

Parameters

arg0 String

String

arg1 Integer

Integer

arg2 K

K

arg3 V

V

arg4 Iterable<Header>

Iterable

ProducerRecord(String, K, V)

public ProducerRecord(String arg0, K arg1, V arg2)

Parameters

arg0 String

String

arg1 K

K

arg2 V

V

ProducerRecord(String, V)

public ProducerRecord(String arg0, V arg1)

Parameters

arg0 String

String

arg1 V

V

ProducerRecord(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public ProducerRecord(params object[] args)

Parameters

args object[]

ProducerRecord(string, int, DateTime, K, V)

public ProducerRecord(string topic, int partition, DateTime timestamp, K key, V value)

Parameters

topic string
partition int
timestamp DateTime
key K
value V

ProducerRecord(string, int, DateTime, K, V, Headers)

public ProducerRecord(string topic, int partition, DateTime timestamp, K key, V value, Headers headers)

Parameters

topic string
partition int
timestamp DateTime
key K
value V
headers Headers

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

DateTime

public DateTime DateTime { get; }

Property Value

DateTime

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Headers()

public Headers Headers()

Returns

Headers

Headers

Key()

public K Key()

Returns

K

K

Partition()

public Integer Partition()

Returns

Integer

Integer

Timestamp()

public Long Timestamp()

Returns

Long

Long

Topic()

public String Topic()

Returns

String

String

Value()

public V Value()

Returns

V

V

Operators

implicit operator ProducerRecord(ProducerRecord<K, V>)

public static implicit operator ProducerRecord(ProducerRecord<K, V> t)

Parameters

t ProducerRecord<K, V>

Returns

ProducerRecord