Examples of NamedThreadFactory


Examples of org.teiid.core.util.NamedThreadFactory

    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
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.