本文整理了Java中java.util.concurrent.ThreadPoolExecutor.reject()
方法的一些代码示例,展示了ThreadPoolExecutor.reject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ThreadPoolExecutor.reject()
方法的具体详情如下:
包路径:java.util.concurrent.ThreadPoolExecutor
类名称:ThreadPoolExecutor
方法名:reject
[英]Invokes the rejected execution handler for the given command. Package-protected for use by ScheduledThreadPoolExecutor.
[中]为给定命令调用被拒绝的执行处理程序。受ScheduledThreadPoolExecutor保护的包。
代码示例来源:origin: robovm/robovm
int recheck = ctl.get();
if (! isRunning(recheck) && remove(command))
reject(command);
else if (workerCountOf(recheck) == 0)
addWorker(null, false);
reject(command);
代码示例来源:origin: ibinti/bugvm
int recheck = ctl.get();
if (! isRunning(recheck) && remove(command))
reject(command);
else if (workerCountOf(recheck) == 0)
addWorker(null, false);
reject(command);
代码示例来源:origin: FlexoVM/flexovm
int recheck = ctl.get();
if (! isRunning(recheck) && remove(command))
reject(command);
else if (workerCountOf(recheck) == 0)
addWorker(null, false);
reject(command);
代码示例来源:origin: com.bugvm/bugvm-rt
int recheck = ctl.get();
if (! isRunning(recheck) && remove(command))
reject(command);
else if (workerCountOf(recheck) == 0)
addWorker(null, false);
reject(command);
代码示例来源:origin: MobiVM/robovm
int recheck = ctl.get();
if (! isRunning(recheck) && remove(command))
reject(command);
else if (workerCountOf(recheck) == 0)
addWorker(null, false);
reject(command);
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
int recheck = ctl.get();
if (! isRunning(recheck) && remove(command))
reject(command);
else if (workerCountOf(recheck) == 0)
addWorker(null, false);
reject(command);
代码示例来源:origin: org.codehaus.jsr166-mirror/jsr166
int recheck = ctl.get();
if (! isRunning(recheck) && remove(command))
reject(command);
else if (workerCountOf(recheck) == 0)
addWorker(null, false);
reject(command);
代码示例来源:origin: com.gluonhq/robovm-rt
int recheck = ctl.get();
if (! isRunning(recheck) && remove(command))
reject(command);
else if (workerCountOf(recheck) == 0)
addWorker(null, false);
reject(command);
代码示例来源:origin: org.apidesign.bck2brwsr/emul
int recheck = ctl.get();
if (! isRunning(recheck) && remove(command))
reject(command);
else if (workerCountOf(recheck) == 0)
addWorker(null, false);
reject(command);
代码示例来源:origin: jtulach/bck2brwsr
int recheck = ctl.get();
if (! isRunning(recheck) && remove(command))
reject(command);
else if (workerCountOf(recheck) == 0)
addWorker(null, false);
reject(command);
内容来源于网络,如有侵权,请联系作者删除!