Package org.apache.openejb.util

Examples of org.apache.openejb.util.ExecutorBuilder.build()


            .prefix("AsynchronousPool")
            .size(options.get("AsynchronousPool.Size", 5))
            .threadFactory(new DaemonThreadFactory("@Asynchronous", appContext.getId()));

        return new AsynchronousPool(
            builder.build(options),
            options.get("AsynchronousPool.ShutdownWaitDuration", new Duration(1, TimeUnit.MINUTES)));
    }

    public Object invoke(final Callable<Object> callable, final boolean isVoid) throws Throwable {
        final AtomicBoolean asynchronousCancelled = new AtomicBoolean(false);
View Full Code Here


            .prefix("AsynchronousPool")
            .size(options.get("AsynchronousPool.Size", 5))
            .threadFactory(new DaemonThreadFactory("@Asynchronous", appContext.getId()));

        return new AsynchronousPool(
            builder.build(options),
            options.get("AsynchronousPool.ShutdownWaitDuration", new Duration(1, TimeUnit.MINUTES)));
    }

    public Object invoke(final Callable<Object> callable, final boolean isVoid) throws Throwable {
        final AtomicBoolean asynchronousCancelled = new AtomicBoolean(false);
View Full Code Here

                .size(3)
                .threadFactory(new DaemonThreadFactory("@Asynchronous", appContext.getId()));

        final Options options = appContext.getOptions();
        final AsynchronousPool asynchronousPool = new AsynchronousPool(
                builder.build(options),
                options.get("AsynchronousPool.ShutdownWaitDuration", new Duration(1, TimeUnit.MINUTES)));
        return asynchronousPool;
    }

    public Object invoke(final Callable<Object> callable, final boolean isVoid) throws Throwable {
View Full Code Here

        final ExecutorBuilder builder = new ExecutorBuilder()
                .prefix("AsynchronousPool")
                .size(3)
                .threadFactory(new DaemonThreadFactory("@Asynchronous", appContext.getId()));

        return new AsynchronousPool(builder.build(appContext.getOptions()));
    }

    public Object invoke(final Callable<Object> callable, final boolean isVoid) throws Throwable {
        final AtomicBoolean asynchronousCancelled = new AtomicBoolean(false);
View Full Code Here

        final ExecutorBuilder builder = new ExecutorBuilder()
                .prefix("AsynchronousPool")
                .size(10)
                .threadFactory(new DaemonThreadFactory("@Asynchronous", appContext.getId()));

        return new AsynchronousPool(builder.build(appContext.getOptions()));
    }

    public Object invoke(Callable<Object> callable, boolean isVoid) throws Throwable {
        final AtomicBoolean asynchronousCancelled = new AtomicBoolean(false);
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.