类 AbortPolicyWithReport
- java.lang.Object
-
- java.util.concurrent.ThreadPoolExecutor.AbortPolicy
-
- org.apache.dubbo.common.threadpool.support.AbortPolicyWithReport
-
- 所有已实现的接口:
RejectedExecutionHandler
public class AbortPolicyWithReport extends ThreadPoolExecutor.AbortPolicy
Abort Policy. Log warn info when abort.
-
-
构造器概要
构造器 构造器 说明 AbortPolicyWithReport(String threadName, URL url)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
addThreadPoolExhaustedEventListener(ThreadPoolExhaustedListener listener)
void
dispatchThreadPoolExhaustedEvent(String msg)
dispatch ThreadPoolExhaustedEventvoid
rejectedExecution(Runnable r, ThreadPoolExecutor e)
void
removeThreadPoolExhaustedEventListener(ThreadPoolExhaustedListener listener)
-
-
-
方法详细资料
-
rejectedExecution
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
-
addThreadPoolExhaustedEventListener
public void addThreadPoolExhaustedEventListener(ThreadPoolExhaustedListener listener)
-
removeThreadPoolExhaustedEventListener
public void removeThreadPoolExhaustedEventListener(ThreadPoolExhaustedListener listener)
-
dispatchThreadPoolExhaustedEvent
public void dispatchThreadPoolExhaustedEvent(String msg)
dispatch ThreadPoolExhaustedEvent- 参数:
msg
-
-
-