Class SynchronizedQueue<T>
- java.lang.Object
- 
- org.apache.tomcat.util.collections.SynchronizedQueue<T>
 
- 
- Type Parameters:
- T- The type of object managed by this queue
 
 public class SynchronizedQueue<T> extends java.lang.ObjectThis is intended as a (mostly) GC-free alternative toConcurrentLinkedQueuewhen the requirement is to create an unbounded queue with no requirement to shrink the queue. The aim is to provide the bare minimum of required functionality as quickly as possible with minimum garbage.
- 
- 
Field SummaryFields Modifier and Type Field Description static intDEFAULT_SIZE
 - 
Constructor SummaryConstructors Constructor Description SynchronizedQueue()SynchronizedQueue(int initialSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleanoffer(T t)Tpoll()intsize()
 
- 
- 
- 
Field Detail- 
DEFAULT_SIZEpublic static final int DEFAULT_SIZE - See Also:
- Constant Field Values
 
 
- 
 
-