Interface HasOffset
-
public interface HasOffsetInterface for any SparkReceiverthat supports reading from and to some offset.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.LonggetEndOffset()default voidsetCheckpoint(java.lang.Long recordsProcessed)SomeReceiversupport mechanism of checkpoint (e.g.voidsetStartOffset(java.lang.Long offset)
-
-
-
Method Detail
-
setStartOffset
void setStartOffset(java.lang.Long offset)
- Parameters:
offset- inclusive start offset from which the reading should be started.
-
getEndOffset
java.lang.Long getEndOffset()
- Returns:
- exclusive end offset to which the reading from current page will occur.
-
setCheckpoint
default void setCheckpoint(java.lang.Long recordsProcessed)
SomeReceiversupport mechanism of checkpoint (e.g. ack). This method should be called before stopping the receiver.
-
-