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
implements Iterable<Map.Entry<P,O>>
Keeps track the source partitions to be processed by the connector task and their respective offsets.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the offset of the only offset that the task is configured to use.Returns the offset of the only partition that the task is configured to use.iterator()
static <P extends Partition,
O extends OffsetContext>
Offsets<P,O> static <P extends Partition,
O extends OffsetContext>
Offsets<P,O> of
(P partition, O position) void
resetOffset
(P partition) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
offsets
-
-
Constructor Details
-
Offsets
-
-
Method Details
-
of
public static <P extends Partition,O extends OffsetContext> Offsets<P,O> of(P partition, O position) -
of
-
resetOffset
-
getPartitions
-
getOffsets
-
iterator
-
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
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.
-