Examples of ThreadRenameFactory


Examples of com.bj58.spat.gaea.client.communication.socket.ThreadRenameFactory

        if (this.weightRage >= 0) {
            this.state = ServerState.Normal;
        } else {
            this.state = ServerState.Disable;
        }
        scheduler = Executors.newScheduledThreadPool(2,new ThreadRenameFactory("Async "+this.getName()+"-Server Thread"));
    }
View Full Code Here

Examples of com.bj58.spat.gaea.server.util.tools.ThreadRenameFactory

   * 获取AsyncInvoker实例
   * @param workerCount 工作线程个数
   */
  private AsyncInvoker(int workerCount, boolean timeoutEffect) {
    workers = new AsyncWorker[workerCount];
    ExecutorService executor = Executors.newCachedThreadPool(new ThreadRenameFactory("async task thread"));
   
    for(int i=0; i<workers.length; i++) {
      workers[i] = new AsyncWorker(executor, timeoutEffect);
      workers[i].setDaemon(true);
      workers[i].setName("async task worker[" + i + "]");
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.