Interface IConsumer
.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.DynBridgeInstanceIJVMBridgeBase.BridgeInstanceIJVMBridgeDefinition.BridgeClassNameIJVMBridgeDefinition.IsBridgeInterfaceIJVMBridgeDefinition.IsBridgeAbstractIJVMBridgeDefinition.IsBridgeStaticIJVMBridgeDefinition.IsBridgeCloseableIJVMBridgeDefinition.IsBridgeListener
Methods
Assign(Collection<TopicPartition>)
void Assign(Collection<TopicPartition> partitions)
Parameters
partitions
Collection<TopicPartition>
Assignment()
Set<TopicPartition> Assignment()
Returns
BeginningOffsets(Collection<TopicPartition>)
Map<TopicPartition, Long> BeginningOffsets(Collection<TopicPartition> partitions)
Parameters
partitions
Collection<TopicPartition>
Returns
BeginningOffsets(Collection<TopicPartition>, Duration)
Map<TopicPartition, Long> BeginningOffsets(Collection<TopicPartition> partitions, Duration timeout)
Parameters
partitions
Collection<TopicPartition>timeout
Duration
Returns
ClientInstanceId(Duration)
Uuid ClientInstanceId(Duration arg0)
Parameters
Returns
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
Committed(Set<TopicPartition>, Duration)
Map<TopicPartition, OffsetAndMetadata> Committed(Set<TopicPartition> partitions, Duration timeout)
Parameters
partitions
Set<TopicPartition>timeout
Duration
Returns
CurrentLag(TopicPartition)
OptionalLong CurrentLag(TopicPartition topicPartition)
Parameters
topicPartition
TopicPartition
Returns
EndOffsets(Collection<TopicPartition>)
Map<TopicPartition, Long> EndOffsets(Collection<TopicPartition> partitions)
Parameters
partitions
Collection<TopicPartition>
Returns
EndOffsets(Collection<TopicPartition>, Duration)
Map<TopicPartition, Long> EndOffsets(Collection<TopicPartition> partitions, Duration timeout)
Parameters
partitions
Collection<TopicPartition>timeout
Duration
Returns
EnforceRebalance()
void EnforceRebalance()
EnforceRebalance(String)
void EnforceRebalance(String reason)
Parameters
reason
String
GroupMetadata()
ConsumerGroupMetadata GroupMetadata()
Returns
ListTopics()
Map<String, List<PartitionInfo>> ListTopics()
Returns
ListTopics(Duration)
Map<String, List<PartitionInfo>> ListTopics(Duration timeout)
Parameters
timeout
Duration
Returns
Metrics<T>()
Map<MetricName, T> Metrics<T>() where T : Metric
Returns
- Map<MetricName, T>
Type Parameters
T
OffsetsForTimes(Map<TopicPartition, Long>)
Map<TopicPartition, OffsetAndTimestamp> OffsetsForTimes(Map<TopicPartition, Long> timestampsToSearch)
Parameters
timestampsToSearch
Map<TopicPartition, Long>
Returns
OffsetsForTimes(Map<TopicPartition, Long>, Duration)
Map<TopicPartition, OffsetAndTimestamp> OffsetsForTimes(Map<TopicPartition, Long> timestampsToSearch, Duration timeout)
Parameters
timestampsToSearch
Map<TopicPartition, Long>timeout
Duration
Returns
PartitionsFor(String)
List<PartitionInfo> PartitionsFor(String topic)
Parameters
topic
String
Returns
PartitionsFor(String, Duration)
List<PartitionInfo> PartitionsFor(String topic, Duration timeout)
Parameters
Returns
Pause(Collection<TopicPartition>)
void Pause(Collection<TopicPartition> partitions)
Parameters
partitions
Collection<TopicPartition>
Paused()
Set<TopicPartition> Paused()
Returns
Position(TopicPartition)
long Position(TopicPartition partition)
Parameters
partition
TopicPartition
Returns
Position(TopicPartition, Duration)
long Position(TopicPartition partition, Duration timeout)
Parameters
partition
TopicPartitiontimeout
Duration
Returns
Resume(Collection<TopicPartition>)
void Resume(Collection<TopicPartition> partitions)
Parameters
partitions
Collection<TopicPartition>
Seek(TopicPartition, OffsetAndMetadata)
void Seek(TopicPartition partition, OffsetAndMetadata offsetAndMetadata)
Parameters
partition
TopicPartitionoffsetAndMetadata
OffsetAndMetadata
Seek(TopicPartition, long)
void Seek(TopicPartition partition, long offset)
Parameters
partition
TopicPartitionoffset
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
Patternlistener
ConsumerRebalanceListener
Subscription()
Set<String> Subscription()
Returns
Unsubscribe()
void Unsubscribe()
Wakeup()
void Wakeup()