public class TimeWaitRejectedExecutionHandler extends Object implements RejectedExecutionHandler
| Constructor and Description |
|---|
TimeWaitRejectedExecutionHandler(SofaThreadPoolExecutor executor,
long waitTime,
TimeUnit timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface RejectedExecutionHandlerpublic RejectedExecutionHandler getDelegate()
public void setDelegate(RejectedExecutionHandler delegate)
public void setTimeWaitRunner(TimeWaitRunner timeWaitRunner)
public void setThreadPoolExecutor(SofaThreadPoolExecutor threadPoolExecutor)
Copyright © 2020. All rights reserved.