Package org.apache.logging.log4j.status
Class StatusLogger.BoundedQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.ConcurrentLinkedQueue<E>
org.apache.logging.log4j.status.StatusLogger.BoundedQueue<E>
- Type Parameters:
E
- Object type to be stored in the queue.
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,Queue<E>
- Enclosing class:
- StatusLogger
Queues for status events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private final int
-
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
size
private final int size
-
-
Constructor Details
-
BoundedQueue
BoundedQueue(int size)
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceQueue<E>
- Overrides:
add
in classConcurrentLinkedQueue<E>
-