Module gomint.api

Interface Task


  • public interface Task
    Version:
    1.0
    Author:
    geNAZt
    • Method Detail

      • cancel

        void cancel()
        Cancel the Task. This interrupts the Thread which is executing the Task
      • onException

        void onException​(ExceptionHandler exceptionHandler)
        Register a new exceptionHandler to fetch Exceptions
        Parameters:
        exceptionHandler - which should be used to handle Exceptions
      • onComplete

        void onComplete​(CompleteHandler completeHandler)
        Register a new complete handler to fetch completion of tasks
        Parameters:
        completeHandler - which should be added to the completion execution list