Package io.debezium.pipeline.spi
Class Offsets<P extends Partition,O extends OffsetContext>
- java.lang.Object
-
- io.debezium.pipeline.spi.Offsets<P,O>
-
public final class Offsets<P extends Partition,O extends OffsetContext> extends Object
Keeps track the source partitions to be processed by the connector task and their respective offsets.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OgetTheOnlyOffset()Returns the offset of the only offset that the task is configured to use.PgetTheOnlyPartition()Returns the offset of the only partition that the task is configured to use.voidresetOffset(P partition)
-
-
-
Field Detail
-
offsets
private final Map<P extends Partition,O extends OffsetContext> offsets
-
-
Method Detail
-
resetOffset
public void resetOffset(P partition)
-
getTheOnlyPartition
public P getTheOnlyPartition()
Returns the offset of the only partition that the task is configured to use. This method is meant to be used only by the connectors that do not implement handling multiple partitions per task.
-
getTheOnlyOffset
public O getTheOnlyOffset()
Returns the offset of the only offset that the task is configured to use. This method is meant to be used only by the connectors that do not implement handling multiple partitions per task.
-
-