What are the possible reason for a java.util.concurrent.RejectedExecutionException in a SingleThreadExecutor

前端 未结 4 542
执笔经年
执笔经年 2020-12-08 13:13

I create the following executor in a singleton:

   final private ExecutorService executor = Executors.newSingleThreadExecutor(new ThreadFactory() {
                 


        
4条回答
  •  悲&欢浪女
    2020-12-08 13:43

    Threads are not available to execute the given task. No linked block queue to que task.

提交回复
热议问题