Interface CurrentTaskFuture.AllTheWay

    • Method Detail

      • waitForResult

        java.lang.Boolean waitForResult​(long timeout,
                                        java.util.concurrent.TimeUnit unit)
                                 throws java.lang.InterruptedException,
                                        MultiException
        The method to call on the internal job
        Parameters:
        timeout - The amount of time to wait for a result
        unit - The unit of the above time value
        Returns:
        True if the job finished, False if the timeout is up prior to the job finishing, and null if the job was repurposed and the caller may now need to listen on a different job
        Throws:
        java.lang.InterruptedException - On a thread getting jacked
        MultiException - Other exceptions