Table of Contents

Class KafkaConsumer

Namespace
Org.Apache.Kafka.Clients.Consumer
Assembly
MASES.KNet.dll
public class KafkaConsumer : Consumer, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ICloseable, IAutoCloseable
Inheritance
JVMBridgeBase
JVMBridgeBase<AutoCloseable>
KafkaConsumer
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()
JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])
JVMBridgeBase<AutoCloseable>.DynBridgeClazz
JVMBridgeBase<AutoCloseable>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener

Constructors

KafkaConsumer()

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

public KafkaConsumer()

KafkaConsumer(Map)

public KafkaConsumer(Map arg0)

Parameters

arg0 Map

Map

KafkaConsumer(Map, Deserializer, Deserializer)

public KafkaConsumer(Map arg0, Deserializer arg1, Deserializer arg2)

Parameters

arg0 Map

Map

arg1 Deserializer

Deserializer

arg2 Deserializer

Deserializer

KafkaConsumer(Properties)

public KafkaConsumer(Properties arg0)

Parameters

arg0 Properties

Properties

KafkaConsumer(Properties, Deserializer, Deserializer)

public KafkaConsumer(Properties arg0, Deserializer arg1, Deserializer arg2)

Parameters

arg0 Properties

Properties

arg1 Deserializer

Deserializer

arg2 Deserializer

Deserializer

KafkaConsumer(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 KafkaConsumer(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Assign(Collection)

public void Assign(Collection arg0)

Parameters

arg0 Collection

Collection

Assignment()

public Set Assignment()

Returns

Set

Set

BeginningOffsets(Collection)

public Map BeginningOffsets(Collection arg0)

Parameters

arg0 Collection

Collection

Returns

Map

Map

BeginningOffsets(Collection, Duration)

public Map BeginningOffsets(Collection arg0, Duration arg1)

Parameters

arg0 Collection

Collection

arg1 Duration

Duration

Returns

Map

Map

ClientInstanceId(Duration)

public Uuid ClientInstanceId(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

Uuid

Uuid

Close()

public void Close()

Close(Duration)

public void Close(Duration arg0)

Parameters

arg0 Duration

Duration

CommitAsync()

public void CommitAsync()

CommitAsync(Map, OffsetCommitCallback)

public void CommitAsync(Map arg0, OffsetCommitCallback arg1)

Parameters

arg0 Map

Map

arg1 OffsetCommitCallback

OffsetCommitCallback

CommitAsync(OffsetCommitCallback)

public void CommitAsync(OffsetCommitCallback arg0)

Parameters

arg0 OffsetCommitCallback

OffsetCommitCallback

CommitSync()

public void CommitSync()

CommitSync(Duration)

public void CommitSync(Duration arg0)

Parameters

arg0 Duration

Duration

CommitSync(Map)

public void CommitSync(Map arg0)

Parameters

arg0 Map

Map

CommitSync(Map, Duration)

public void CommitSync(Map arg0, Duration arg1)

Parameters

arg0 Map

Map

arg1 Duration

Duration

Committed(Set)

public Map Committed(Set arg0)

Parameters

arg0 Set

Set

Returns

Map

Map

Committed(Set, Duration)

public Map Committed(Set arg0, Duration arg1)

Parameters

arg0 Set

Set

arg1 Duration

Duration

Returns

Map

Map

CurrentLag(TopicPartition)

public OptionalLong CurrentLag(TopicPartition arg0)

Parameters

arg0 TopicPartition

TopicPartition

Returns

OptionalLong

OptionalLong

EndOffsets(Collection)

public Map EndOffsets(Collection arg0)

Parameters

arg0 Collection

Collection

Returns

Map

Map

EndOffsets(Collection, Duration)

public Map EndOffsets(Collection arg0, Duration arg1)

Parameters

arg0 Collection

Collection

arg1 Duration

Duration

Returns

Map

Map

EnforceRebalance()

public void EnforceRebalance()

EnforceRebalance(String)

public void EnforceRebalance(String arg0)

Parameters

arg0 String

String

GroupMetadata()

public ConsumerGroupMetadata GroupMetadata()

Returns

ConsumerGroupMetadata

ConsumerGroupMetadata

ListTopics()

public Map ListTopics()

Returns

Map

Map

ListTopics(Duration)

public Map ListTopics(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

Map

Map

Metrics()

public Map Metrics()

Returns

Map

Map

OffsetsForTimes(Map)

public Map OffsetsForTimes(Map arg0)

Parameters

arg0 Map

Map

Returns

Map

Map

OffsetsForTimes(Map, Duration)

public Map OffsetsForTimes(Map arg0, Duration arg1)

Parameters

arg0 Map

Map

arg1 Duration

Duration

Returns

Map

Map

PartitionsFor(String)

public List PartitionsFor(String arg0)

Parameters

arg0 String

String

Returns

List

List

PartitionsFor(String, Duration)

public List PartitionsFor(String arg0, Duration arg1)

Parameters

arg0 String

String

arg1 Duration

Duration

Returns

List

List

Pause(Collection)

public void Pause(Collection arg0)

Parameters

arg0 Collection

Collection

Paused()

public Set Paused()

Returns

Set

Set

Poll(Duration)

public ConsumerRecords Poll(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

ConsumerRecords

ConsumerRecords

Position(TopicPartition)

public long Position(TopicPartition arg0)

Parameters

arg0 TopicPartition

TopicPartition

Returns

long

long

Position(TopicPartition, Duration)

public long Position(TopicPartition arg0, Duration arg1)

Parameters

arg0 TopicPartition

TopicPartition

arg1 Duration

Duration

Returns

long

long

Resume(Collection)

public void Resume(Collection arg0)

Parameters

arg0 Collection

Collection

Seek(TopicPartition, OffsetAndMetadata)

public void Seek(TopicPartition arg0, OffsetAndMetadata arg1)

Parameters

arg0 TopicPartition

TopicPartition

arg1 OffsetAndMetadata

OffsetAndMetadata

Seek(TopicPartition, long)

public void Seek(TopicPartition arg0, long arg1)

Parameters

arg0 TopicPartition

TopicPartition

arg1 long

long

SeekToBeginning(Collection)

public void SeekToBeginning(Collection arg0)

Parameters

arg0 Collection

Collection

SeekToEnd(Collection)

public void SeekToEnd(Collection arg0)

Parameters

arg0 Collection

Collection

Subscribe(Collection)

public void Subscribe(Collection arg0)

Parameters

arg0 Collection

Collection

Subscribe(Collection, ConsumerRebalanceListener)

public void Subscribe(Collection arg0, ConsumerRebalanceListener arg1)

Parameters

arg0 Collection

Collection

arg1 ConsumerRebalanceListener

ConsumerRebalanceListener

Subscribe(Pattern)

public void Subscribe(Pattern arg0)

Parameters

arg0 Pattern

Pattern

Subscribe(Pattern, ConsumerRebalanceListener)

public void Subscribe(Pattern arg0, ConsumerRebalanceListener arg1)

Parameters

arg0 Pattern

Pattern

arg1 ConsumerRebalanceListener

ConsumerRebalanceListener

Subscription()

public Set Subscription()

Returns

Set

Set

Unsubscribe()

public void Unsubscribe()

Wakeup()

public void Wakeup()