Package io.dropwizard.lifecycle

Examples of io.dropwizard.lifecycle.ExecutorServiceManager


                        unit,
                        workQueue,
                        threadFactory));
        final ThreadPoolExecutor threadPoolExecutor = executors.get(key);
        if (existing == null) {
            environment.lifecycle().manage(new ExecutorServiceManager(threadPoolExecutor, Duration.seconds(5), nameFormat));
        }
        return threadPoolExecutor;
    }
View Full Code Here


                                                                   keepAliveTime.getQuantity(),
                                                                   keepAliveTime.getUnit(),
                                                                   workQueue,
                                                                   threadFactory,
                                                                   handler);
        environment.manage(new ExecutorServiceManager(executor, shutdownTime, nameFormat));
        return executor;
    }
View Full Code Here

        return this;
    }

    public ScheduledExecutorService build() {
        final ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(poolSize, threadFactory, handler);
        environment.manage(new ExecutorServiceManager(executor, shutdownTime, nameFormat));
        return executor;
    }
View Full Code Here

TOP

Related Classes of io.dropwizard.lifecycle.ExecutorServiceManager

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.