Examples of poolSize()


Examples of org.apache.camel.builder.ThreadPoolBuilder.poolSize()

    @Override
    public void configure() throws Exception {

        ThreadPoolBuilder builder = new ThreadPoolBuilder(getContext());
        ExecutorService oneThreadOnly = builder.poolSize(1).maxPoolSize(1)
            .maxQueueSize(100).build("JustMeDoingTheTapping");

        from("direct:start")
            .wireTap("direct:tapped").executorService(oneThreadOnly)
            .to("mock:out");
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.