Class RemoveSplitsTask<SplitT extends org.apache.flink.api.connector.source.SourceSplit>
- java.lang.Object
-
- org.apache.flink.connector.base.source.reader.fetcher.RemoveSplitsTask<SplitT>
-
- All Implemented Interfaces:
SplitFetcherTask
@Internal public class RemoveSplitsTask<SplitT extends org.apache.flink.api.connector.source.SourceSplit> extends Object implements SplitFetcherTask
The task to finish reading some splits.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanrun()Run the logic.StringtoString()voidwakeUp()Wake up the running thread.
-
-
-
Method Detail
-
run
public boolean run()
Description copied from interface:SplitFetcherTaskRun the logic. This method allows throwing an interrupted exception on wakeup, but the implementation does not have to. It is preferred to finish the work elegantly and return a boolean to indicate whether all the jobs have been done or more invocation is needed.- Specified by:
runin interfaceSplitFetcherTask- Returns:
- whether the runnable has successfully finished running.
-
wakeUp
public void wakeUp()
Description copied from interface:SplitFetcherTaskWake up the running thread.- Specified by:
wakeUpin interfaceSplitFetcherTask
-
-