Class TestableJobCoordinatorEventsWaiter

    • Constructor Detail

      • TestableJobCoordinatorEventsWaiter

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

      • awaitEventsConsumption

        public boolean awaitEventsConsumption()
                                       throws org.awaitility.core.ConditionTimeoutException
        Description copied from interface: AsyncEventsWaiter
        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.
        Specified by:
        awaitEventsConsumption in interface AsyncEventsWaiter
        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
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception