Package de.netseeker.ejoe.concurrent

Examples of de.netseeker.ejoe.concurrent.ThreadPoolResizer


        if ( this._serverInfo.isAutomaticThreadPoolResize() )
        {
            timer = new Timer();

            // schedule a monitor task for the read-process-thread-pool
            timer.schedule( new ThreadPoolResizer( this._readpool, this._serverInfo.getMaxReadProcessors(),
                                                   EJConstants.EJOE_POOL_RESIZER_SHRINKWAIT ), this._serverInfo
                    .getPoolResizePeriod(), this._serverInfo.getPoolResizePeriod() );
            // schedule a monitor task for the writer-thread-pool
            timer.schedule( new ThreadPoolResizer( this._writePool, this._serverInfo.getMaxWriteProcessors(),
                                                   EJConstants.EJOE_POOL_RESIZER_SHRINKWAIT ), this._serverInfo
                    .getPoolResizePeriod(), this._serverInfo.getPoolResizePeriod() );
        }

        try
View Full Code Here

TOP

Related Classes of de.netseeker.ejoe.concurrent.ThreadPoolResizer

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.