Interface Task

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()  
      TaskResult execute​(com.rapiddweller.common.Context context, com.rapiddweller.common.ErrorHandler errorHandler)
      Executes the task's work, possibly interacting with the context.
      java.lang.String getTaskName()
      Gets task name.
      void pageFinished()
      Page finished.
      • Methods inherited from interface com.rapiddweller.common.ThreadAware

        isParallelizable, isThreadSafe
    • Method Detail

      • getTaskName

        java.lang.String getTaskName()
        Gets task name.
        Returns:
        the name of the task.
      • execute

        TaskResult execute​(com.rapiddweller.common.Context context,
                           com.rapiddweller.common.ErrorHandler errorHandler)
        Executes the task's work, possibly interacting with the context.
        Parameters:
        context - the context
        errorHandler - the error handler
        Returns:
        the task result
      • pageFinished

        void pageFinished()
        Page finished.
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable