Interface JobCoordinatorCountedEventsWaiter
-
- All Known Implementing Classes:
TestableJobCoordinatorCountedEventsWaiter
public interface JobCoordinatorCountedEventsWaiter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
awaitJobsConsumption(long newAdditionalClearedJobCountSinceLastCall)
Wait by blocking calling thread until an expected number of jobs have been processed by job coordinator.
-
-
-
Method Detail
-
awaitJobsConsumption
boolean awaitJobsConsumption(long newAdditionalClearedJobCountSinceLastCall) throws org.awaitility.core.ConditionTimeoutException
Wait by blocking calling thread until an expected number of jobs have been processed by job coordinator. Implementations must have some sensible fixed timeout value. This method is normally called from the JUnit Test main thread.- Returns:
- true if all the expected number of jobs have been processed, false otherwise
- Throws:
org.awaitility.core.ConditionTimeoutException
- if timed out while waiting
-
-