public class KafkaRecordSupplier extends Object implements RecordSupplier<Integer,Long>
| Constructor and Description |
|---|
KafkaRecordSupplier(Map<String,Object> consumerProperties,
com.fasterxml.jackson.databind.ObjectMapper sortingMapper) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addConsumerPropertiesFromConfig(Properties properties,
com.fasterxml.jackson.databind.ObjectMapper configMapper,
Map<String,Object> consumerProperties) |
void |
assign(Set<StreamPartition<Integer>> streamPartitions) |
void |
close() |
Set<StreamPartition<Integer>> |
getAssignment() |
Long |
getEarliestSequenceNumber(StreamPartition<Integer> partition) |
Long |
getLatestSequenceNumber(StreamPartition<Integer> partition) |
Set<Integer> |
getPartitionIds(String stream) |
Long |
getPosition(StreamPartition<Integer> partition) |
List<OrderedPartitionableRecord<Integer,Long>> |
poll(long timeout) |
void |
seek(StreamPartition<Integer> partition,
Long sequenceNumber) |
void |
seekToEarliest(Set<StreamPartition<Integer>> partitions) |
void |
seekToLatest(Set<StreamPartition<Integer>> partitions) |
public void assign(Set<StreamPartition<Integer>> streamPartitions)
assign in interface RecordSupplier<Integer,Long>public void seek(StreamPartition<Integer> partition, Long sequenceNumber)
seek in interface RecordSupplier<Integer,Long>public void seekToEarliest(Set<StreamPartition<Integer>> partitions)
seekToEarliest in interface RecordSupplier<Integer,Long>public void seekToLatest(Set<StreamPartition<Integer>> partitions)
seekToLatest in interface RecordSupplier<Integer,Long>public Set<StreamPartition<Integer>> getAssignment()
getAssignment in interface RecordSupplier<Integer,Long>@Nonnull public List<OrderedPartitionableRecord<Integer,Long>> poll(long timeout)
poll in interface RecordSupplier<Integer,Long>public Long getLatestSequenceNumber(StreamPartition<Integer> partition)
getLatestSequenceNumber in interface RecordSupplier<Integer,Long>public Long getEarliestSequenceNumber(StreamPartition<Integer> partition)
getEarliestSequenceNumber in interface RecordSupplier<Integer,Long>public Long getPosition(StreamPartition<Integer> partition)
getPosition in interface RecordSupplier<Integer,Long>public Set<Integer> getPartitionIds(String stream)
getPartitionIds in interface RecordSupplier<Integer,Long>public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface RecordSupplier<Integer,Long>public static void addConsumerPropertiesFromConfig(Properties properties, com.fasterxml.jackson.databind.ObjectMapper configMapper, Map<String,Object> consumerProperties)
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.