Package com.gdflab.gdfsr.utils
Class SyncQueue<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- java.util.concurrent.LinkedBlockingQueue<E>
-
- com.gdflab.gdfsr.utils.SyncQueue<E>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.concurrent.BlockingQueue<E>
,java.util.Queue<E>
public class SyncQueue<E> extends java.util.concurrent.LinkedBlockingQueue<E>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SyncQueue.Closer<E>
-
Constructor Summary
Constructors Constructor Description SyncQueue(int size)
SyncQueue(int size, SyncQueue.Closer<E> closer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E elem)
E
poll()
void
put(E elem)
void
release()
-
Methods inherited from class java.util.concurrent.LinkedBlockingQueue
clear, contains, drainTo, drainTo, forEach, iterator, offer, offer, peek, poll, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, take, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
SyncQueue
public SyncQueue(int size)
-
SyncQueue
public SyncQueue(int size, @Nullable SyncQueue.Closer<E> closer)
-
-