Examples of ThrottlingThreadPoolExecutorService


Examples of org.apache.s4.comm.staging.ThrottlingThreadPoolExecutorService

    @Override
    public ExecutorService create() {
        LoggerFactory.getLogger(getClass()).info(
                "Creating a throttling executor with a pool size of {} and max rate of {} events / s",
                new String[] { String.valueOf(threadPoolSize), String.valueOf(maxRate), });
        return new ThrottlingThreadPoolExecutorService(threadPoolSize, maxRate,
                (this instanceof RemoteSendersExecutorServiceFactory) ? "remote-sender-%d" : "sender-%d",
                workQueueSize, getClass().getClassLoader());
    }
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.