private static class Synchronized.SynchronizedQueue<E> extends Synchronized.SynchronizedCollection<E> implements java.util.Queue<E>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
delegate, mutex
Constructor and Description |
---|
SynchronizedQueue(java.util.Queue<E> delegate,
java.lang.Object mutex) |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Queue<E> |
delegate() |
E |
element() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
E |
remove() |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
SynchronizedQueue(java.util.Queue<E> delegate, @Nullable java.lang.Object mutex)
java.util.Queue<E> delegate()
delegate
in class Synchronized.SynchronizedCollection<E>