public class TimeWaitRejectedExecutionHandler extends Object implements RejectedExecutionHandler
| 构造器和说明 |
|---|
TimeWaitRejectedExecutionHandler(SofaThreadPoolExecutor executor,
long waitTime,
TimeUnit timeUnit) |
| 限定符和类型 | 方法和说明 |
|---|---|
RejectedExecutionHandler |
getDelegate() |
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor executor) |
void |
setDelegate(RejectedExecutionHandler delegate) |
void |
setThreadPoolExecutor(SofaThreadPoolExecutor threadPoolExecutor) |
void |
setTimeWaitRunner(TimeWaitRunner timeWaitRunner) |
public TimeWaitRejectedExecutionHandler(SofaThreadPoolExecutor executor, long waitTime, TimeUnit timeUnit)
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor)
rejectedExecution 在接口中 RejectedExecutionHandlerpublic RejectedExecutionHandler getDelegate()
public void setDelegate(RejectedExecutionHandler delegate)
public void setTimeWaitRunner(TimeWaitRunner timeWaitRunner)
public void setThreadPoolExecutor(SofaThreadPoolExecutor threadPoolExecutor)
Copyright © 2021. All rights reserved.