Package java.util.concurrent

Examples of java.util.concurrent.SynchronousQueue$TransferStack


        boolean preStartAllCoreThreads = val != null ? Boolean.parseBoolean(val.trim())
                : EjbContainer.DEFAULT_PRESTART_ALL_CORE_THREADS;

        BlockingQueue workQueue = queueCapacity > 0
                ? new LinkedBlockingQueue<Runnable>(queueCapacity)
                : new SynchronousQueue(true);

        result = new EjbThreadPoolExecutor(corePoolSize, maxPoolSize, keepAliveSeconds, workQueue, poolName);

        if(allowCoreThreadTimeout) {
            result.allowCoreThreadTimeOut(true);
View Full Code Here


    return localPriorityQueue;
  }

  public static SynchronousQueue newSynchronousQueue()
  {
    return new SynchronousQueue();
  }
View Full Code Here

        ThreadFactory threadFactory = new ThreadFactoryBuilder()
                .setDaemon(true).setNameFormat(this.name + "-process").build();

        this.processor = new ThreadPoolExecutor(minThreads, maxThreads,
                keepAliveTime, TimeUnit.SECONDS, new SynchronousQueue(),
                threadFactory);
        boolean shouldRejectWhenFull = CONFIGURATION
                .shouldRejectWhenAllBatcherThreadsUsed(this.name);
        if (!shouldRejectWhenFull) {
            this.processor
View Full Code Here

TOP

Related Classes of java.util.concurrent.SynchronousQueue$TransferStack

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.