Class FixedSizeQueue<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
org.apache.synapse.commons.executors.queues.FixedSizeQueue<E>
Type Parameters:
E - Should implement the Importance interface
All Implemented Interfaces:
Iterable<E>, Collection<E>, Queue<E>, InternalQueue<E>

public class FixedSizeQueue<E> extends AbstractQueue<E> implements InternalQueue<E>
A bounded queue implementation for internal queues. This queue is backed by an fixed size array.
  • Constructor Details

    • FixedSizeQueue

      public FixedSizeQueue(int priority, int capacity)
      Create a queue with the given priority and capacity.
      Parameters:
      priority - priority of the elements in the queue
      capacity - capacity of the queue
  • Method Details