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 booleanisError()Indicates if there is currently an error.booleanisErrorAndThrow()Allows to use within predicate checks to throw failure if one.voidwaitForCompletion()Waits for completion of all threads.
-
-
-
Method Detail
-
waitForCompletion
void waitForCompletion() throws T extends java.lang.ThrowableWaits for completion of all threads.
-
isError
boolean isError()
Indicates if there is currently an error.
This method will not block.
- Returns:
trueif an error.
-
-