Package org.apache.camel.processor

Examples of org.apache.camel.processor.SendAsyncProcessor


        // create async processor
        Endpoint endpoint = resolveEndpoint(routeContext);

        // TODO: rework to have configured executor service in SendAsyncProcessor being handled in stop/start scenario

        SendAsyncProcessor async = new SendAsyncProcessor(endpoint, getPattern(), uow);

        executorService = ExecutorServiceHelper.getConfiguredExecutorService(routeContext, "ToAsync", this);
        if (executorService != null) {
            async.setExecutorService(executorService);
        }
        if (poolSize != null) {
            async.setPoolSize(poolSize);
        }

        return async;
    }
View Full Code Here


        UnitOfWorkProcessor uow = new UnitOfWorkProcessor(childProcessor);

        // create async processor
        Endpoint endpoint = resolveEndpoint(routeContext);

        SendAsyncProcessor async = new SendAsyncProcessor(endpoint, getPattern(), uow);
        if (executorService != null) {
            async.setExecutorService(executorService);
        }
        if (poolSize != null) {
            async.setPoolSize(poolSize);
        }

        return async;
    }
View Full Code Here

        UnitOfWorkProcessor uow = new UnitOfWorkProcessor(routeContext, childProcessor);

        // create async processor
        Endpoint endpoint = resolveEndpoint(routeContext);

        SendAsyncProcessor async = new SendAsyncProcessor(endpoint, getPattern(), uow);
        if (executorService != null) {
            async.setExecutorService(executorService);
        }
        if (poolSize != null) {
            async.setPoolSize(poolSize);
        }

        return async;
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.processor.SendAsyncProcessor

Copyright © 2018 www.massapicom. 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.