Package edu.emory.mathcs.backport.java.util.concurrent

Examples of edu.emory.mathcs.backport.java.util.concurrent.ArrayBlockingQueue


            pluginConfig);
      if (this.asyncSendQueueSizeMax > 0) {
         this.asyncSendQueueBlockOnOverflow = glob.get("asyncSendQueueBlockOnOverflow",
               this.asyncSendQueueBlockOnOverflow, null,
               pluginConfig);
         this.asyncSendQueue = new ArrayBlockingQueue(this.asyncSendQueueSizeMax);
         this.asyncSender = new AsyncSender(this, this.asyncSendQueue, msgIdFileName);
         Thread t = new Thread(this.asyncSender, getType() + "-AsyncSender");
         t.start();
      }
     
View Full Code Here


        public Worker() {
            super(THREAD_GROUP, "Dispatcher-" + COUNTER.incrementAndGet());
        }

        private void setQueue(BlockingQueue queue) {
            this.queue = (queue == null ? new ArrayBlockingQueue(capacity)
                    : queue);
        }
View Full Code Here

            return answer;
        }
    }

    protected BlockingQueueTransport createTransportChannel() {
        return new BlockingQueueTransport(new ArrayBlockingQueue(10));
    }
View Full Code Here

     * Constructor
     */
    public DeliveryChannelImpl(ComponentMBeanImpl component) {
        this.component = component;
        this.container = component.getContainer();
        this.queue = new ArrayBlockingQueue(component.getInboundQueueCapacity());
        this.transactionManager = (TransactionManager) this.container.getTransactionManager();
    }
View Full Code Here

        if (config.getQueueSize() == 0) {
            queue = new SynchronousQueue();
        } else if (config.getQueueSize() < 0 || config.getQueueSize() == Integer.MAX_VALUE) {
            queue = new LinkedBlockingQueue();
        } else {
            queue = new ArrayBlockingQueue(config.getQueueSize());
        }
        ThreadFactory factory = new DefaultThreadFactory(id,
                                                         config.isThreadDaemon(),
                                                         config.getThreadPriority());
        RejectedExecutionHandler handler = new ThreadPoolExecutor.CallerRunsPolicy();
View Full Code Here

TOP

Related Classes of edu.emory.mathcs.backport.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.