Class TestableJobCoordinatorEventsWaiter
- java.lang.Object
-
- org.opendaylight.genius.datastoreutils.testutils.AbstractTestableJobCoordinatorEventsWaiter
-
- org.opendaylight.genius.datastoreutils.testutils.TestableJobCoordinatorEventsWaiter
-
- All Implemented Interfaces:
java.lang.AutoCloseable,AsyncEventsWaiter,JobCoordinatorEventsWaiter
@Singleton public class TestableJobCoordinatorEventsWaiter extends AbstractTestableJobCoordinatorEventsWaiter implements JobCoordinatorEventsWaiter
-
-
Field Summary
-
Fields inherited from class org.opendaylight.genius.datastoreutils.testutils.AbstractTestableJobCoordinatorEventsWaiter
jobCoordinatorMonitor
-
-
Constructor Summary
Constructors Constructor Description TestableJobCoordinatorEventsWaiter(org.opendaylight.infrautils.jobcoordinator.JobCoordinatorMonitor jobCoordinatorMonitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitEventsConsumption()Wait by blocking calling thread until pending events have been processed by other threads in the background.voidclose()-
Methods inherited from class org.opendaylight.genius.datastoreutils.testutils.AbstractTestableJobCoordinatorEventsWaiter
awaitJobsConsumption
-
-
-
-
Method Detail
-
awaitEventsConsumption
public boolean awaitEventsConsumption() throws org.awaitility.core.ConditionTimeoutExceptionDescription copied from interface:AsyncEventsWaiterWait 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:
awaitEventsConsumptionin interfaceAsyncEventsWaiter- 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:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-