本文整理了Java中org.jboss.threads.JBossExecutors.protectedExecutorService()
方法的一些代码示例,展示了JBossExecutors.protectedExecutorService()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JBossExecutors.protectedExecutorService()
方法的具体详情如下:
包路径:org.jboss.threads.JBossExecutors
类名称:JBossExecutors
方法名:protectedExecutorService
[英]Wrap an executor with an ExecutorService instance which supports all the features of ExecutorServiceexcept for shutting down the executor.
[中]使用ExecutorService实例包装executor,该实例支持ExecutorService的所有功能(关闭executor除外)。
代码示例来源:origin: wildfly/wildfly
@Override
public ExecutorService apply(ExecutorService executor) {
return JBossExecutors.protectedExecutorService(executor);
}
代码示例来源:origin: org.infinispan.server/infinispan-server-commons
public ManagedExecutorService(Executor executor) {
this(JBossExecutors.protectedExecutorService(executor));
}
代码示例来源:origin: wildfly/wildfly-core
protected ExecutorService protectExecutor(ExecutorService executor) {
return JBossExecutors.protectedExecutorService(executor);
}
代码示例来源:origin: org.jboss.eap/wildfly-clustering-service
@Override
public ExecutorService apply(ExecutorService executor) {
return JBossExecutors.protectedExecutorService(executor);
}
代码示例来源:origin: org.jboss.as/jboss-as-clustering-jgroups
@Override
public ExecutorService getDefaultExecutor() {
Executor executor = this.defaultExecutor.getOptionalValue();
return (executor != null) ? JBossExecutors.protectedExecutorService(executor) : null;
}
代码示例来源:origin: org.jboss.as/jboss-as-clustering-jgroups
@Override
public ExecutorService getOOBExecutor() {
Executor executor = this.oobExecutor.getOptionalValue();
return (executor != null) ? JBossExecutors.protectedExecutorService(executor) : null;
}
内容来源于网络,如有侵权,请联系作者删除!