public interface OffsetReader extends Closeable
| Modifier and Type | Method and Description | 
|---|---|
| List<Long> | getStoredOffsetPersistenceTimes()Returns the list of available persistence times offsets have been written to the underlying storage mechanism. | 
| Map<org.apache.kafka.common.TopicPartition,Long> | readLatestOffsets()Reads the last stored offsets. | 
| Map<org.apache.kafka.common.TopicPartition,Long> | readOffsets(long persistedOffsetTime)Reads the offsets for a given  persistedOffsetTime. | 
Map<org.apache.kafka.common.TopicPartition,Long> readLatestOffsets() throws IOException
IOException - if there is an error reading from the underlying storage.Map<org.apache.kafka.common.TopicPartition,Long> readOffsets(long persistedOffsetTime) throws IOException
persistedOffsetTime.  Note that not all storage mechanisms support
 complete historical offset information.  Use the getStoredOffsetPersistenceTimes() to find valid values
 to specify for persistedOffsetTime.persistedOffsetTime - the persistence time when offsets were written to the underlying storage system.persistedOffsetTime.  If no offsets were persisted
 at that time or available to be retrieved then null will be returned.IOException - if there is an error reading from the underlying storage.List<Long> getStoredOffsetPersistenceTimes() throws IOException
empty list is returned.IOException - if there is an error reading from the underlying storage.Copyright © 2017 The Apache Software Foundation. All rights reserved.