Package org.apache.blur.user

Examples of org.apache.blur.user.UserThreadBoundaryProcessor


  public static ExecutorService newThreadPool(BlockingQueue<Runnable> workQueue, String prefix, int threadCount,
      boolean watch) {
    BlurThreadPoolExecutor executorService = new BlurThreadPoolExecutor(threadCount, threadCount, 60L,
        TimeUnit.SECONDS, workQueue, new BlurThreadFactory(prefix));
    executorService.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
    executorService.add(new UserThreadBoundaryProcessor());
    if (watch) {
      return Trace.getExecutorService(ThreadWatcher.instance().watch(executorService));
    }
    return Trace.getExecutorService(executorService);
  }
View Full Code Here

TOP

Related Classes of org.apache.blur.user.UserThreadBoundaryProcessor

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.