Examples of FixThreadPoolExecutor


Examples of com.founder.fix.fixflow.core.impl.threadpool.FixThreadPoolExecutor

  public ThreadPoolExecutor execute(CommandContext commandContext) {
    if(threadPoolKey==null||threadPoolKey.equals("")){
      threadPoolKey="default";
    }
    ProcessEngineConfigurationImpl processEngineConfigurationImpl=commandContext.getProcessEngineConfigurationImpl();
    FixThreadPoolExecutor fixThreadPoolExecutor= processEngineConfigurationImpl.getThreadPoolMap().get(threadPoolKey);
    return fixThreadPoolExecutor;
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.threadpool.FixThreadPoolExecutor

  protected void initThreadPool() {

    // 这里以后要从配置文件读取现在是写死的
    threadPoolMap = new HashMap<String, FixThreadPoolExecutor>();
    BlockingQueue<Runnable> queue = new LinkedBlockingQueue<Runnable>();
    FixThreadPoolExecutor executor = new FixThreadPoolExecutor("default", "默认线程池", 1, 1, 1, TimeUnit.DAYS, queue);
    threadPoolMap.put(executor.getThreadPoolKey(), executor);

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.