Class StatusLogger.BoundedQueue<E>

  • Type Parameters:
    E - Object type to be stored in the queue.
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Queue<E>
    Enclosing class:
    StatusLogger

    private class StatusLogger.BoundedQueue<E>
    extends java.util.concurrent.ConcurrentLinkedQueue<E>
    Queues for status events.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
      private int size  
    • Constructor Summary

      Constructors 
      Constructor Description
      BoundedQueue​(int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(E object)  
      • Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue

        addAll, clear, contains, forEach, isEmpty, iterator, offer, peek, poll, remove, removeAll, removeIf, retainAll, size, spliterator, toArray, toArray, toString
      • Methods inherited from class java.util.AbstractQueue

        element, remove
      • Methods inherited from class java.util.AbstractCollection

        containsAll
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        containsAll, equals, hashCode, parallelStream, stream, toArray
      • Methods inherited from interface java.util.Queue

        element, remove
    • Field Detail

      • size

        private final int size
    • Constructor Detail

      • BoundedQueue

        BoundedQueue​(int size)
    • Method Detail

      • add

        public boolean add​(E object)
        Specified by:
        add in interface java.util.Collection<E>
        Specified by:
        add in interface java.util.Queue<E>
        Overrides:
        add in class java.util.concurrent.ConcurrentLinkedQueue<E>