org.jboss.threads.JBossExecutors.protectedExecutorService()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中org.jboss.threads.JBossExecutors.protectedExecutorService()方法的一些代码示例,展示了JBossExecutors.protectedExecutorService()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JBossExecutors.protectedExecutorService()方法的具体详情如下:
包路径:org.jboss.threads.JBossExecutors
类名称:JBossExecutors
方法名:protectedExecutorService

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;
}

相关文章

微信公众号

最新文章

更多