Interface SplitFetcherTask

  • All Known Implementing Classes:
    RemoveSplitsTask

    @Internal
    public interface SplitFetcherTask
    An interface similar to Runnable but allows throwing exceptions and wakeup.
    • Method Detail

      • run

        boolean run()
             throws IOException
        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.