Search in sources :

Example 1 with StreamingStatistics

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;
    }));
}
Also used : JUnitLambdaProbe(org.mule.tck.probe.JUnitLambdaProbe) StreamingStatistics(org.mule.runtime.core.api.streaming.StreamingStatistics) PollingProber(org.mule.tck.probe.PollingProber)

Aggregations

StreamingStatistics (org.mule.runtime.core.api.streaming.StreamingStatistics)1 JUnitLambdaProbe (org.mule.tck.probe.JUnitLambdaProbe)1 PollingProber (org.mule.tck.probe.PollingProber)1