Package net.officefloor.frame.test
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isError()
Indicates if there is currently an error.boolean
isErrorAndThrow()
Allows to use within predicate checks to throw failure if one.void
waitForCompletion()
Waits for completion of all threads.
-
-
-
Method Detail
-
waitForCompletion
void waitForCompletion() throws T extends java.lang.Throwable
Waits for completion of all threads.
-
isError
boolean isError()
Indicates if there is currently an error.
This method will not block.
- Returns:
true
if an error.
-
-