Interface SizeableTraversableQueue<T>

All Superinterfaces:
TraversableQueue<T>
All Known Implementing Classes:
EvictingQueue

public interface SizeableTraversableQueue<T> extends TraversableQueue<T>
  • Method Details

    • setSize

      void setSize(int size)
      Sets the maximum size of the queue. If the current size is larger than the new size, the oldest elements will be removed.
      Parameters:
      size - the new size
    • size

      int size()
      Returns the maximum size of the queue.
      Returns:
      The maximum size of the queue.