Package co.paralleluniverse.galaxy.core

Examples of co.paralleluniverse.galaxy.core.CommThread


        executor.setRejectedExecutionHandler(new ThreadPoolExecutor.DiscardPolicy());
        executor.setThreadFactory(new CustomThreadFactory(name) {

            @Override
            protected Thread allocateThread(ThreadGroup group, Runnable target, String name) {
                return new CommThread(group, target, name);
            }

        });
        ThreadPoolExecutorMonitor.register(name, executor);
    }
View Full Code Here


        jgroupsThreadPool.setRejectedExecutionHandler(new ThreadPoolExecutor.DiscardPolicy());
        jgroupsThreadPool.setThreadFactory(new CustomThreadFactory("jgroups") {

            @Override
            protected Thread allocateThread(ThreadGroup group, Runnable target, String name) {
                return new CommThread(group, target, name);
            }

        });
        ThreadPoolExecutorMonitor.register("jgroups", jgroupsThreadPool);
View Full Code Here

TOP

Related Classes of co.paralleluniverse.galaxy.core.CommThread

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.