Interface SplitFetcherTask
-
- All Known Implementing Classes:
RemoveSplitsTask
@PublicEvolving public interface SplitFetcherTaskAn interface similar toRunnablebut allows throwing exceptions and wakeup.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanrun()Run the logic.voidwakeUp()Wake up the running thread.
-
-
-
Method Detail
-
run
boolean run() throws IOExceptionRun 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.- Returns:
- whether the runnable has successfully finished running.
- Throws:
IOException- when the performed I/O operation fails.
-
wakeUp
void wakeUp()
Wake up the running thread.
-
-