Interface AsyncEventsWaiter
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Subinterfaces:
JobCoordinatorEventsWaiter
- All Known Implementing Classes:
AbstractTestableListener
,TestableDataTreeChangeListener
,TestableJobCoordinatorEventsWaiter
public interface AsyncEventsWaiter extends java.lang.AutoCloseable
Allows 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 boolean
awaitEventsConsumption()
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.ConditionTimeoutException
Wait 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
-
-