Package com.caucho.util

Examples of com.caucho.util.ThreadPool


        && _threadExecutorTaskMax > 0
        && _threadMax < _threadExecutorTaskMax)
      throw new ConfigException(L.l("<thread-executor-task-max> ({0}) must be less than <thread-max> ({1})",
                                    _threadExecutorTaskMax, _threadMax));

    ThreadPool threadPool = ThreadPool.getThreadPool();

    if (_threadMax > 0)
      threadPool.setThreadMax(_threadMax);

    if (_threadIdleMax > 0)
      threadPool.setThreadIdleMax(_threadIdleMax);

    if (_threadIdleMin > 0)
      threadPool.setThreadIdleMin(_threadIdleMin);

    threadPool.setExecutorTaskMax(_threadExecutorTaskMax);

    /*
    if (_keepaliveSelectEnable) {
      try {
        Class<?> cl = Class.forName("com.caucho.server.connection.JniSelectManager");
View Full Code Here


  }

  @PostConstruct
  public void init()
  {
    ThreadPool threadPool = ThreadPool.getThreadPool();
   
    threadPool.setThreadMax(_threadMax);
    threadPool.setThreadIdleMax(_threadSpareMin + THREAD_GAP);
    threadPool.setThreadIdleMin(_threadSpareMin);
  }
View Full Code Here

TOP

Related Classes of com.caucho.util.ThreadPool

Copyright © 2018 www.massapicom. 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.