Interface AsyncEventsWaiter
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Subinterfaces:
JobCoordinatorEventsWaiter
- All Known Implementing Classes:
AbstractTestableListener,TestableDataTreeChangeListener,TestableJobCoordinatorEventsWaiter
public interface AsyncEventsWaiter extends java.lang.AutoCloseableAllows tests to wait for asynchronous event processing to be done.- Author:
- Michael Vorburger.ch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanawaitEventsConsumption()Wait by blocking calling thread until pending events have been processed by other threads in the background.
-
-
-
Method Detail
-
awaitEventsConsumption
boolean awaitEventsConsumption() throws org.awaitility.core.ConditionTimeoutExceptionWait by blocking calling thread until pending events have been processed by other threads in the background. Implementations must have some sensible fixed timeout value. This method is normally called from the JUnit Test main thread.- Returns:
- true if anything was pending to be processed and has been processed, false if nothing needed to be
- Throws:
org.awaitility.core.ConditionTimeoutException- if timed out while waiting
-
-