Module java.base

Class ThreadPoolExecutor.DiscardPolicy

java.lang.Object
java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
所有已实现的接口:
RejectedExecutionHandler
封闭类:
ThreadPoolExecutor

public static class ThreadPoolExecutor.DiscardPolicy extends Object implements RejectedExecutionHandler
一个用于拒绝任务的处理程序,静默地丢弃被拒绝的任务。
  • Constructor Details

    • DiscardPolicy

      public DiscardPolicy()
      创建一个DiscardPolicy
  • Method Details