Class ArrayOperationQueueFactory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int capacity  
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayOperationQueueFactory​(int cap)
      Create an ArrayOperationQueueFactory that creates blocking queues with the given capacity.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.BlockingQueue<Operation> create()
      Create an instance of a queue.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • capacity

        private final int capacity
    • Constructor Detail

      • ArrayOperationQueueFactory

        public ArrayOperationQueueFactory​(int cap)
        Create an ArrayOperationQueueFactory that creates blocking queues with the given capacity.
        Parameters:
        cap - maximum size of a queue produced by this factory