Interface SplitFetcherTask
- All Known Implementing Classes:
RemoveSplitsTask
@PublicEvolving
public interface SplitFetcherTask
An interface similar to
Runnable but allows throwing exceptions and wakeup.-
Method Summary
-
Method Details
-
run
Run 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.
-