use of org.mule.runtime.core.api.streaming.StreamingStatistics in project mule by mulesoft.
the class AbstractStreamingExtensionTestCase method assertAllStreamingResourcesClosed.
private void assertAllStreamingResourcesClosed() {
StreamingStatistics stats = streamingManager.getStreamingStatistics();
new PollingProber(10000, 100).check(new JUnitLambdaProbe(() -> {
assertThat("There're still open cursor providers", stats.getOpenCursorProvidersCount(), is(0));
assertThat("There're still open cursors", stats.getOpenCursorsCount(), is(0));
return true;
}));
}
Aggregations