com.alibaba.dubbo.common.threadpool.support
Class AbortPolicyWithReport

java.lang.Object
  extended by java.util.concurrent.ThreadPoolExecutor.AbortPolicy
      extended by com.alibaba.dubbo.common.threadpool.support.AbortPolicyWithReport
All Implemented Interfaces:
RejectedExecutionHandler

public class AbortPolicyWithReport
extends ThreadPoolExecutor.AbortPolicy

Abort Policy. Log warn info when abort.

Author:
ding.lid

Constructor Summary
AbortPolicyWithReport(String threadName, URL url)
           
 
Method Summary
 void rejectedExecution(Runnable r, ThreadPoolExecutor e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbortPolicyWithReport

public AbortPolicyWithReport(String threadName,
                             URL url)
Method Detail

rejectedExecution

public void rejectedExecution(Runnable r,
                              ThreadPoolExecutor e)
Specified by:
rejectedExecution in interface RejectedExecutionHandler
Overrides:
rejectedExecution in class ThreadPoolExecutor.AbortPolicy


Copyright © 2012–2017 Alibaba. All rights reserved.