Table of Contents

Interface IConsumer

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

.NET interface for Consumer

public interface IConsumer : 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

Assign(Collection<TopicPartition>)

void Assign(Collection<TopicPartition> partitions)

Parameters

partitions Collection<TopicPartition>

Assignment()

Set<TopicPartition> Assignment()

Returns

Set<TopicPartition>

Set

BeginningOffsets(Collection<TopicPartition>)

Map<TopicPartition, Long> BeginningOffsets(Collection<TopicPartition> partitions)

Parameters

partitions Collection<TopicPartition>

Returns

Map<TopicPartition, Long>

Map

BeginningOffsets(Collection<TopicPartition>, Duration)

Map<TopicPartition, Long> BeginningOffsets(Collection<TopicPartition> partitions, Duration timeout)

Parameters

partitions Collection<TopicPartition>
timeout Duration

Returns

Map<TopicPartition, Long>

Map

ClientInstanceId(Duration)

Uuid ClientInstanceId(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

Uuid

Uuid

CommitAsync()

void CommitAsync()

CommitAsync(Map<TopicPartition, OffsetAndMetadata>, OffsetCommitCallback)

void CommitAsync(Map<TopicPartition, OffsetAndMetadata> offsets, OffsetCommitCallback callback)

Parameters

offsets Map<TopicPartition, OffsetAndMetadata>
callback OffsetCommitCallback

CommitAsync(OffsetCommitCallback)

void CommitAsync(OffsetCommitCallback callback)

Parameters

callback OffsetCommitCallback

CommitSync()

void CommitSync()

CommitSync(Duration)

void CommitSync(Duration timeout)

Parameters

timeout Duration

CommitSync(Map<TopicPartition, OffsetAndMetadata>)

void CommitSync(Map<TopicPartition, OffsetAndMetadata> offsets)

Parameters

offsets Map<TopicPartition, OffsetAndMetadata>

CommitSync(Map<TopicPartition, OffsetAndMetadata>, Duration)

void CommitSync(Map<TopicPartition, OffsetAndMetadata> offsets, Duration timeout)

Parameters

offsets Map<TopicPartition, OffsetAndMetadata>
timeout Duration

Committed(Set<TopicPartition>)

Map<TopicPartition, OffsetAndMetadata> Committed(Set<TopicPartition> partitions)

Parameters

partitions Set<TopicPartition>

Returns

Map<TopicPartition, OffsetAndMetadata>

Map

Committed(Set<TopicPartition>, Duration)

Map<TopicPartition, OffsetAndMetadata> Committed(Set<TopicPartition> partitions, Duration timeout)

Parameters

partitions Set<TopicPartition>
timeout Duration

Returns

Map<TopicPartition, OffsetAndMetadata>

Map

CurrentLag(TopicPartition)

OptionalLong CurrentLag(TopicPartition topicPartition)

Parameters

topicPartition TopicPartition

Returns

OptionalLong

OptionalLong

EndOffsets(Collection<TopicPartition>)

Map<TopicPartition, Long> EndOffsets(Collection<TopicPartition> partitions)

Parameters

partitions Collection<TopicPartition>

Returns

Map<TopicPartition, Long>

Map

EndOffsets(Collection<TopicPartition>, Duration)

Map<TopicPartition, Long> EndOffsets(Collection<TopicPartition> partitions, Duration timeout)

Parameters

partitions Collection<TopicPartition>
timeout Duration

Returns

Map<TopicPartition, Long>

Map

EnforceRebalance()

void EnforceRebalance()

EnforceRebalance(String)

void EnforceRebalance(String reason)

Parameters

reason String

GroupMetadata()

ConsumerGroupMetadata GroupMetadata()

Returns

ConsumerGroupMetadata

ConsumerGroupMetadata

ListTopics()

Map<String, List<PartitionInfo>> ListTopics()

Returns

Map<String, List<PartitionInfo>>

Map

ListTopics(Duration)

Map<String, List<PartitionInfo>> ListTopics(Duration timeout)

Parameters

timeout Duration

Returns

Map<String, List<PartitionInfo>>

Map

Metrics<T>()

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

Returns

Map<MetricName, T>

Map

Type Parameters

T

OffsetsForTimes(Map<TopicPartition, Long>)

Map<TopicPartition, OffsetAndTimestamp> OffsetsForTimes(Map<TopicPartition, Long> timestampsToSearch)

Parameters

timestampsToSearch Map<TopicPartition, Long>

Returns

Map<TopicPartition, OffsetAndTimestamp>

Map

OffsetsForTimes(Map<TopicPartition, Long>, Duration)

Map<TopicPartition, OffsetAndTimestamp> OffsetsForTimes(Map<TopicPartition, Long> timestampsToSearch, Duration timeout)

Parameters

timestampsToSearch Map<TopicPartition, Long>
timeout Duration

Returns

Map<TopicPartition, OffsetAndTimestamp>

Map

PartitionsFor(String)

List<PartitionInfo> PartitionsFor(String topic)

Parameters

topic String

Returns

List<PartitionInfo>

List

PartitionsFor(String, Duration)

List<PartitionInfo> PartitionsFor(String topic, Duration timeout)

Parameters

topic String
timeout Duration

Returns

List<PartitionInfo>

List

Pause(Collection<TopicPartition>)

void Pause(Collection<TopicPartition> partitions)

Parameters

partitions Collection<TopicPartition>

Paused()

Set<TopicPartition> Paused()

Returns

Set<TopicPartition>

Set

Position(TopicPartition)

long Position(TopicPartition partition)

Parameters

partition TopicPartition

Returns

long

long

Position(TopicPartition, Duration)

long Position(TopicPartition partition, Duration timeout)

Parameters

partition TopicPartition
timeout Duration

Returns

long

long

Resume(Collection<TopicPartition>)

void Resume(Collection<TopicPartition> partitions)

Parameters

partitions Collection<TopicPartition>

Seek(TopicPartition, OffsetAndMetadata)

void Seek(TopicPartition partition, OffsetAndMetadata offsetAndMetadata)

Parameters

partition TopicPartition
offsetAndMetadata OffsetAndMetadata

Seek(TopicPartition, long)

void Seek(TopicPartition partition, long offset)

Parameters

partition TopicPartition
offset long

SeekToBeginning(Collection<TopicPartition>)

void SeekToBeginning(Collection<TopicPartition> partitions)

Parameters

partitions Collection<TopicPartition>

SeekToEnd(Collection<TopicPartition>)

void SeekToEnd(Collection<TopicPartition> partitions)

Parameters

partitions Collection<TopicPartition>

Subscribe(Collection<String>)

void Subscribe(Collection<String> topics)

Parameters

topics Collection<String>

Subscribe(Collection<String>, ConsumerRebalanceListener)

void Subscribe(Collection<String> topics, ConsumerRebalanceListener listener)

Parameters

topics Collection<String>
listener ConsumerRebalanceListener

Subscribe(Pattern)

void Subscribe(Pattern pattern)

Parameters

pattern Pattern

Subscribe(Pattern, ConsumerRebalanceListener)

void Subscribe(Pattern pattern, ConsumerRebalanceListener listener)

Parameters

pattern Pattern
listener ConsumerRebalanceListener

Subscription()

Set<String> Subscription()

Returns

Set<String>

Set

Unsubscribe()

void Unsubscribe()

Wakeup()

void Wakeup()