Package ar.util

Examples of ar.util.NamedThreadFactory


public class MostRecentOnlyExecutor extends ThreadPoolExecutor {
  public MostRecentOnlyExecutor(int corePoolSize, String threadNameBase) {
    super(corePoolSize, corePoolSize,
        1, TimeUnit.SECONDS,
        new ArrayBlockingQueue<Runnable>(1),
        new NamedThreadFactory(threadNameBase, true),
        new ThreadPoolExecutor.DiscardOldestPolicy());
  }
View Full Code Here

TOP

Related Classes of ar.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.