Package java.util.concurrent

Examples of java.util.concurrent.ArrayBlockingQueue


    private LoggingConfiguration() {
        ThreadFactory threadFactory = new ThreadFactoryBuilder()
        .setDaemon(false).setNameFormat("DynamicLog4jListener").build();

        this.executorPool = new ThreadPoolExecutor(0, 1, 15 * 60,
                TimeUnit.SECONDS, new ArrayBlockingQueue(100), threadFactory);
    }
View Full Code Here


    * Important: this *MUST* be called with WL on {@link #address2key}.
    */
   private void addQueuesForAddresses(Collection<Address> addresses) {
      for (Address address : addresses) {
         if (interestedInAddress(address)) {
            address2key.put(address, new ArrayBlockingQueue(bufferSize));
         } else {
            if (log.isTraceEnabled())
               log.tracef("Skipping address: %s", address);
         }
      }
View Full Code Here

    targs.processor(new DistributedRPC.Processor<DistributedRPC.Iface>(
        service));
   
    ThreadPoolExecutor executor = new ThreadPoolExecutor(workerThreadNum,
        workerThreadNum, 60, TimeUnit.SECONDS,
        new ArrayBlockingQueue(queueSize));
    targs.executorService(executor);

    THsHaServer handlerServer = new THsHaServer(targs);
    LOG.info("Successfully init Handler Server " + port);
View Full Code Here

TOP

Related Classes of java.util.concurrent.ArrayBlockingQueue

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.