Package io.debezium.connector.common
Class OffsetReader<P extends Partition,O extends OffsetContext,L extends OffsetContext.Loader<O>>
- java.lang.Object
-
- io.debezium.connector.common.OffsetReader<P,O,L>
-
public class OffsetReader<P extends Partition,O extends OffsetContext,L extends OffsetContext.Loader<O>> extends Object
Provides access to the partition offsets stored by connectors.
-
-
Constructor Summary
Constructors Constructor Description OffsetReader(org.apache.kafka.connect.storage.OffsetStorageReader reader, L loader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<P,O>
offsets(Set<P> partitions)
Given the collection of connector-specific task partitions, returns their respective connector-specific offsets.
-
-
-
Field Detail
-
reader
private final org.apache.kafka.connect.storage.OffsetStorageReader reader
-
loader
private final L extends OffsetContext.Loader<O> loader
-
-
Constructor Detail
-
OffsetReader
public OffsetReader(org.apache.kafka.connect.storage.OffsetStorageReader reader, L loader)
-
-