Interface ThreadedTestSupport.MultiThreadedExecution<T extends java.lang.Throwable>

  • Enclosing class:
    ThreadedTestSupport

    public static interface ThreadedTestSupport.MultiThreadedExecution<T extends java.lang.Throwable>
    Multi-threaded execution.
    • Method Detail

      • waitForCompletion

        void waitForCompletion()
                        throws T extends java.lang.Throwable
        Waits for completion of all threads.
        Throws:
        T - If failure in a thread.
        T extends java.lang.Throwable
      • isError

        boolean isError()

        Indicates if there is currently an error.

        This method will not block.

        Returns:
        true if an error.
      • isErrorAndThrow

        boolean isErrorAndThrow()
                         throws T extends java.lang.Throwable

        Allows to use within predicate checks to throw failure if one.

        This method will not block.

        Returns:
        false always, as will throw failure.
        Throws:
        T - Failure if an error.
        T extends java.lang.Throwable