Examples of RecipientList


Examples of org.apache.camel.processor.RecipientList

    @Override
    public Processor createProcessor(RouteContext routeContext) throws Exception {
        final Expression expression = getExpression().createExpression(routeContext);

        RecipientList answer;
        if (delimiter != null) {
            answer = new RecipientList(routeContext.getCamelContext(), expression, delimiter);
        } else {
            answer = new RecipientList(routeContext.getCamelContext(), expression);
        }
        answer.setAggregationStrategy(createAggregationStrategy(routeContext));
        answer.setParallelProcessing(isParallelProcessing());
        answer.setStreaming(isStreaming());  
        answer.setShareUnitOfWork(isShareUnitOfWork());
        if (onPrepareRef != null) {
            onPrepare = CamelContextHelper.mandatoryLookup(routeContext.getCamelContext(), onPrepareRef, Processor.class);
        }
        if (onPrepare != null) {
            answer.setOnPrepare(onPrepare);
        }
        if (stopOnException != null) {
            answer.setStopOnException(isStopOnException());
        }
        if (ignoreInvalidEndpoints != null) {
            answer.setIgnoreInvalidEndpoints(ignoreInvalidEndpoints);
        }
        if (getTimeout() != null) {
            answer.setTimeout(getTimeout());
        }
        if (isParallelProcessing() && executorService == null) {
            String ref = this.executorServiceRef != null ? this.executorServiceRef : "RecipientList";
            ExecutorServiceManager manager = routeContext.getCamelContext().getExecutorServiceManager();
            executorService = manager.newDefaultThreadPool(this, ref);
        }
        answer.setExecutorService(executorService);
        long timeout = getTimeout() != null ? getTimeout() : 0;
        if (timeout > 0 && !isParallelProcessing()) {
            throw new IllegalArgumentException("Timeout is used but ParallelProcessing has not been enabled.");
        }
View Full Code Here

Examples of org.fusesource.ide.camel.model.generated.RecipientList

        imageProvider.addIconsForClass(new Otherwise());
        imageProvider.addIconsForClass(new Pipeline());
        imageProvider.addIconsForClass(new Policy());
        imageProvider.addIconsForClass(new PollEnrich());
        imageProvider.addIconsForClass(new Process());
        imageProvider.addIconsForClass(new RecipientList());
        imageProvider.addIconsForClass(new RemoveHeader());
        imageProvider.addIconsForClass(new RemoveHeaders());
        imageProvider.addIconsForClass(new RemoveProperty());
        imageProvider.addIconsForClass(new Resequence());
        imageProvider.addIconsForClass(new Rollback());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.