tianyun 3 年之前
父节点
当前提交
a8fe59e83d
共有 1 个文件被更改,包括 1 次插入13 次删除
  1. 1 13
      test1/src/main/java/tmp.java

+ 1 - 13
test1/src/main/java/tmp.java

@@ -4,18 +4,6 @@ import java.util.concurrent.*;
 
 public class tmp {
     public static void main(String[] args) throws InterruptedException {
-        ThreadPoolExecutor executor = new ThreadPoolExecutor(10,
-                20,
-                60L,
-                TimeUnit.SECONDS,
-                new LinkedBlockingQueue<Runnable>(10),
-                Executors.defaultThreadFactory(),
-                new RejectedExecutionHandler() {
-                    @Override
-                    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
-                        System.out.println(r.toString() + " is discard");
-                    }
-                }
-        );
+
     }
 }