Methods
Modifier and Type |
Method and Description |
void |
assign(Collection<TopicPartition> partitions) |
Set<TopicPartition> |
assignment() |
Map<TopicPartition,Long> |
beginningOffsets(Collection<TopicPartition> partitions) |
void |
close() |
void |
close(long timeout,
TimeUnit unit) |
void |
commitAsync() |
void |
commitAsync(Map<TopicPartition,OffsetAndMetadata> offsets,
OffsetCommitCallback callback) |
void |
commitAsync(OffsetCommitCallback callback) |
void |
commitSync() |
void |
commitSync(Map<TopicPartition,OffsetAndMetadata> offsets) |
OffsetAndMetadata |
committed(TopicPartition partition) |
Map<TopicPartition,Long> |
endOffsets(Collection<TopicPartition> partitions) |
Map<String,List<PartitionInfo>> |
listTopics() |
Map<MetricName,? extends Metric> |
metrics() |
Map<TopicPartition,OffsetAndTimestamp> |
offsetsForTimes(Map<TopicPartition,Long> timestampsToSearch) |
List<PartitionInfo> |
partitionsFor(String topic) |
void |
pause(Collection<TopicPartition> partitions) |
Set<TopicPartition> |
paused() |
ConsumerRecords<K,V> |
poll(long timeout) |
long |
position(TopicPartition partition) |
void |
resume(Collection<TopicPartition> partitions) |
void |
seek(TopicPartition partition,
long offset) |
void |
seekToBeginning(Collection<TopicPartition> partitions) |
void |
seekToEnd(Collection<TopicPartition> partitions) |
void |
subscribe(Collection<String> topics) |
void |
subscribe(Collection<String> topics,
ConsumerRebalanceListener callback) |
void |
subscribe(Pattern pattern,
ConsumerRebalanceListener callback) |
Set<String> |
subscription() |
void |
unsubscribe() |
void |
wakeup() |