Class TestableJobCoordinatorCountedEventsWaiter

    • Constructor Detail

      • TestableJobCoordinatorCountedEventsWaiter

        @Inject
        public TestableJobCoordinatorCountedEventsWaiter​(org.opendaylight.infrautils.jobcoordinator.JobCoordinatorMonitor jobCoordinatorMonitor)
    • Method Detail

      • awaitJobsConsumption

        public boolean awaitJobsConsumption​(long newAdditionalClearedJobCountSinceLastCall)
                                     throws org.awaitility.core.ConditionTimeoutException
        Description copied from interface: JobCoordinatorCountedEventsWaiter
        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.
        Specified by:
        awaitJobsConsumption in 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