Interface TaskExecutor<T,V>


public interface TaskExecutor<T,V>
  • Method Details

    • startExecution

      void startExecution()
    • cancelExecution

      boolean cancelExecution()
    • getResult

      @Nullable V getResult()
    • getTask

      BackgroundTask<T,V> getTask()
    • isCancelled

      boolean isCancelled()
    • isDone

      boolean isDone()
    • inProgress

      boolean inProgress()
    • setFinalizer

      void setFinalizer(Runnable finalizer)
      Done handler for clear resources
      Parameters:
      finalizer - Runnable handler
    • getFinalizer

      Runnable getFinalizer()
    • handleProgress

      void handleProgress(T... changes)
      Handle changes from working thread
      Parameters:
      changes - Changes