public interface OffsetHandler
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the offset handler, releasing all resources.
|
void |
commit(Map<org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition,Long> offsetsToCommit)
Commits the given offset for the partitions.
|
Map<org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition,Long> |
getOffsets(List<org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition> partitions)
Positions the given fetcher to the initial read offsets where the stream consumption
will start from.
|
void commit(Map<org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition,Long> offsetsToCommit) throws Exception
offsetsToCommit - The offset to commit, per partition.ExceptionMap<org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition,Long> getOffsets(List<org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition> partitions) throws Exception
partitions - The partitions for which to seeks the fetcher to the beginning.Exceptionvoid close()
throws IOException
IOException - Thrown, if the closing fails.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.