Package io.debezium.pipeline.spi
Class Offsets<P extends Partition,O extends OffsetContext>
- java.lang.Object
-
- io.debezium.pipeline.spi.Offsets<P,O>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<P,O>
getOffsets()
Set<P>
getPartitions()
O
getTheOnlyOffset()
Returns the offset of the only offset that the task is configured to use.P
getTheOnlyPartition()
Returns the offset of the only partition that the task is configured to use.Iterator<Map.Entry<P,O>>
iterator()
static <P extends Partition,O extends OffsetContext>
Offsets<P,O>of(Map<P,O> offsets)
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 Detail
-
offsets
private final Map<P extends Partition,O extends OffsetContext> offsets
-
-
Method Detail
-
of
public static <P extends Partition,O extends OffsetContext> Offsets<P,O> of(P partition, O position)
-
of
public static <P extends Partition,O extends OffsetContext> Offsets<P,O> of(Map<P,O> offsets)
-
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.
-
-