use of org.apache.camel.processor.interceptor.DefaultChannel in project camel by apache.
the class RandomLoadBalanceJavaDSLBuilderTest method navigateRoute.
private void navigateRoute(Navigate<Processor> nav, StringBuilder sb) {
if (!nav.hasNext()) {
return;
}
if (nav instanceof DefaultChannel) {
DefaultChannel channel = (DefaultChannel) nav;
ProcessorDefinition<?> def = channel.getProcessorDefinition();
navigateDefinition(def, sb);
}
}
use of org.apache.camel.processor.interceptor.DefaultChannel in project camel by apache.
the class ResequencerTest method testBatchResequencerTypeWithoutJmx.
public void testBatchResequencerTypeWithoutJmx() throws Exception {
List<Route> list = getRouteList(createRouteBuilder());
assertEquals("Number of routes created: " + list, 1, list.size());
Route route = list.get(0);
EventDrivenConsumerRoute consumerRoute = assertIsInstanceOf(EventDrivenConsumerRoute.class, route);
DefaultChannel channel = assertIsInstanceOf(DefaultChannel.class, unwrapChannel(consumerRoute.getProcessor()));
assertIsInstanceOf(DefaultErrorHandler.class, channel.getErrorHandler());
assertFalse("Should not have stream caching", channel.hasInterceptorStrategy(StreamCaching.class));
assertIsInstanceOf(Resequencer.class, channel.getNextProcessor());
}
Aggregations