package chile.netty.bio;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * Created on 2017/3/6.
 * by huayu.
 * function :
 */

public class TimeServerHandlerExecutePool {

    private ExecutorService executor;

    public TimeServerhandlerExecutePool(int maxPoolSize, int queueSize) {
        executor = new ThreadPoolExecutor(
                Runtime.getRuntime().availableProcessors(),
                maxPoolSize,
                120L,
                TimeUnit.SECONDS,
                new ArrayBlockingQueue<java.lang.Runnable>(queueSize));

    }

    public void execute(java.lang.Runnable task) {
        executor.execute(task);
    }


}

@@ -237,13 +237,13 @@
  by 
-huayu
+chile
 .%0A *
@@ -343,16 +343,89 @@
 cutor;%0A%0A
+    /**%0A     *%0A     * @param maxPoolSize%0A     * @param queueSize%0A     */%0A
     publ
@@ -437,17 +437,17 @@
 meServer
-h
+H
 andlerEx

Test intellij idea git commit and push to remote ...