Class TestableJobCoordinatorCountedEventsWaiter
- java.lang.Object
- 
- org.opendaylight.genius.datastoreutils.testutils.AbstractTestableJobCoordinatorEventsWaiter
- 
- org.opendaylight.genius.datastoreutils.testutils.TestableJobCoordinatorCountedEventsWaiter
 
 
- 
- All Implemented Interfaces:
- JobCoordinatorCountedEventsWaiter
 
 @Singleton public class TestableJobCoordinatorCountedEventsWaiter extends AbstractTestableJobCoordinatorEventsWaiter implements JobCoordinatorCountedEventsWaiter 
- 
- 
Field Summary- 
Fields inherited from class org.opendaylight.genius.datastoreutils.testutils.AbstractTestableJobCoordinatorEventsWaiterjobCoordinatorMonitor
 
- 
 - 
Constructor SummaryConstructors Constructor Description TestableJobCoordinatorCountedEventsWaiter(org.opendaylight.infrautils.jobcoordinator.JobCoordinatorMonitor jobCoordinatorMonitor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitJobsConsumption(long newAdditionalClearedJobCountSinceLastCall)Wait by blocking calling thread until an expected number of jobs have been processed by job coordinator.- 
Methods inherited from class org.opendaylight.genius.datastoreutils.testutils.AbstractTestableJobCoordinatorEventsWaiterawaitJobsConsumption
 
- 
 
- 
- 
- 
Method Detail- 
awaitJobsConsumptionpublic boolean awaitJobsConsumption(long newAdditionalClearedJobCountSinceLastCall) throws org.awaitility.core.ConditionTimeoutExceptionDescription copied from interface:JobCoordinatorCountedEventsWaiterWait 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.- Specified by:
- awaitJobsConsumptionin interface- JobCoordinatorCountedEventsWaiter
- Returns:
- true if all the expected number of jobs have been processed, false otherwise
- Throws:
- org.awaitility.core.ConditionTimeoutException- if timed out while waiting
 
 
- 
 
-