Class MultiTaskHandler

  • All Implemented Interfaces:

    
    public abstract class MultiTaskHandler
    
                        

    Helper class for handling multiple asynchronous tasks.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final AtomicInteger getTasksLeft() the number of incomplete tasks.
      final Boolean getCompleted()
      final Unit taskCompleted() The function that should be called when the task completes
      final Unit taskFailed(String errorMessage) The function to call when an error occurs in the task
      abstract Unit onAllTasksCompleted() Called when all tasks have completed without error.
      abstract Unit onCompletedByError(String errorMessage) Called when the task is completed by an error.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait