Table of Contents

Interface IProducer

Namespace
Org.Apache.Kafka.Clients.Producer
Assembly
MASES.KNet.dll

.NET interface for Producer

public interface IProducer : IJVMBridgeBase, IJVMBridgeDefinition, IDisposable
Inherited Members
IJVMBridgeBase.MonitorEnter()
IJVMBridgeBase.MonitorExit()
IJVMBridgeBase.IsInstanceOf(IJavaType)
IJVMBridgeBase.IsInstanceOf<T>()
IJVMBridgeBase.RuntimeIsInstanceOf<T>()
IJVMBridgeBase.CastTo<TNewClass>()
IJVMBridgeBase.CastDirect<TNewClass>()
IJVMBridgeBase.DynBridgeInstance
IJVMBridgeBase.BridgeInstance
IJVMBridgeDefinition.BridgeClassName
IJVMBridgeDefinition.IsBridgeInterface
IJVMBridgeDefinition.IsBridgeAbstract
IJVMBridgeDefinition.IsBridgeStatic
IJVMBridgeDefinition.IsBridgeCloseable
IJVMBridgeDefinition.IsBridgeListener

Methods

AbortTransaction()

void AbortTransaction()

Exceptions

ProducerFencedException

BeginTransaction()

void BeginTransaction()

Exceptions

ProducerFencedException

ClientInstanceId(Duration)

Uuid ClientInstanceId(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

Uuid

Uuid

CommitTransaction()

void CommitTransaction()

Exceptions

ProducerFencedException

Flush()

void Flush()

InitTransactions()

void InitTransactions()

Metrics<T>()

Map<MetricName, T> Metrics<T>() where T : Metric

Returns

Map<MetricName, T>

Map

Type Parameters

T

PartitionsFor(String)

List<PartitionInfo> PartitionsFor(String topic)

Parameters

topic String

Returns

List<PartitionInfo>

List

SendOffsetsToTransaction(Map<TopicPartition, OffsetAndMetadata>, ConsumerGroupMetadata)

void SendOffsetsToTransaction(Map<TopicPartition, OffsetAndMetadata> offsets, ConsumerGroupMetadata groupMetadata)

Parameters

offsets Map<TopicPartition, OffsetAndMetadata>
groupMetadata ConsumerGroupMetadata

Exceptions

ProducerFencedException