Search in sources :

Example 1 with ReactorProcessingStrategy

use of org.mule.runtime.core.internal.processor.strategy.ReactorProcessingStrategyFactory.ReactorProcessingStrategy in project mule by mulesoft.

the class ReactorProcessingStrategyTestCase method cpuLightRejectedExecution.

@Test
@Description("If CPU LITE pool is busy OVERLOAD error is thrown")
public void cpuLightRejectedExecution() throws Exception {
    flow = flowBuilder.get().processors(blockingProcessor).processingStrategyFactory((context, prefix) -> new ReactorProcessingStrategy(() -> new RejectingScheduler(cpuLight))).build();
    flow.initialise();
    flow.start();
    expectRejected();
    processFlow(testEvent());
}
Also used : ReactorProcessingStrategy(org.mule.runtime.core.internal.processor.strategy.ReactorProcessingStrategyFactory.ReactorProcessingStrategy) Description(io.qameta.allure.Description) Test(org.junit.Test)

Aggregations

Description (io.qameta.allure.Description)1 Test (org.junit.Test)1 ReactorProcessingStrategy (org.mule.runtime.core.internal.processor.strategy.ReactorProcessingStrategyFactory.ReactorProcessingStrategy)1