Package org.teiid.core.util

Examples of org.teiid.core.util.NamedThreadFactory


      this.csr = csr;
      if (port < 0 || port > 0xFFFF) {
            throw new IllegalArgumentException("port out of range:" + port); //$NON-NLS-1$
        }

      this.nettyPool = Executors.newCachedThreadPool(new NamedThreadFactory("NIO")); //$NON-NLS-1$
        if (LogManager.isMessageToBeRecorded(LogConstants.CTX_TRANSPORT, MessageLevel.DETAIL)) {
            LogManager.logDetail(LogConstants.CTX_TRANSPORT, "server = " + bindAddress + "binding to port:" + port); //$NON-NLS-1$ //$NON-NLS-2$
    }
       
        if (maxWorkers == 0) {
View Full Code Here


    this.maximumPoolSize = maximumPoolSize;
    this.poolName = name;
   
    tpe = new ThreadPoolExecutor(0,
        maximumPoolSize, 2, TimeUnit.MINUTES,
        new SynchronousQueue<Runnable>(), new NamedThreadFactory("Worker")) { //$NON-NLS-1$
      @Override
      protected void afterExecute(Runnable r, Throwable t) {
        if (t != null) {
          LogManager.logError(LogConstants.CTX_RUNTIME, t, QueryPlugin.Util.getString("WorkerPool.uncaughtException")); //$NON-NLS-1$
        }
View Full Code Here

TOP

Related Classes of org.teiid.core.util.NamedThreadFactory

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.