public abstract class AbstractTestableListener extends Object implements AsyncEventsWaiter
Constructor and Description |
---|
AbstractTestableListener() |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitEventsConsumption()
Wait by blocking calling thread until pending events have been processed
by other threads in the background.
|
boolean |
awaitEventsConsumption(Duration timeout) |
protected boolean |
awaitEventsConsumption(long timeout,
TimeUnit unit) |
void |
close() |
protected void |
consumedEvents(int howMany)
Signal that a testable listener has consumed an event.
|
public boolean awaitEventsConsumption()
AsyncEventsWaiter
awaitEventsConsumption
in interface AsyncEventsWaiter
public boolean awaitEventsConsumption(Duration timeout)
protected boolean awaitEventsConsumption(long timeout, TimeUnit unit)
protected void consumedEvents(int howMany)
howMany
- number of events consumed; may be negative, to decrementpublic void close() throws IllegalStateException
close
in interface AutoCloseable
IllegalStateException
Copyright © 2019 OpenDaylight. All rights reserved.