Interface HasOffset
public interface HasOffset
Interface for any Spark
Receiver
that supports
reading from and to some offset.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
setCheckpoint
(Long recordsProcessed) SomeReceiver
support mechanism of checkpoint (e.g.void
setStartOffset
(Long offset)
-
Method Details
-
setStartOffset
- Parameters:
offset
- inclusive start offset from which the reading should be started.
-
getEndOffset
Long getEndOffset()- Returns:
- exclusive end offset to which the reading from current page will occur.
-
setCheckpoint
SomeReceiver
support mechanism of checkpoint (e.g. ack). This method should be called before stopping the receiver.
-