public class LinkedQueue<E>
extends java.util.AbstractQueue<E>
implements java.util.concurrent.BlockingQueue<E>, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
LinkedQueue.PollCallBack<E> |
| Constructor and Description |
|---|
LinkedQueue() |
LinkedQueue(java.util.Collection<? extends E> c) |
LinkedQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int index,
E o) |
void |
clear() |
int |
drainTo(java.util.Collection<? super E> c) |
int |
drainTo(java.util.Collection<? super E> c,
int maxElements) |
void |
fullyLock() |
void |
fullyUnlock() |
E |
get(int index) |
int |
indexOf(E o) |
java.util.Iterator<E> |
iterator() |
java.util.List<E> |
list() |
boolean |
offer(E o) |
boolean |
offer(E o,
long timeout,
java.util.concurrent.TimeUnit unit) |
E |
peek() |
E |
poll() |
E |
poll(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
poll(long timeout,
java.util.concurrent.TimeUnit unit,
LinkedQueue.PollCallBack<E> pollCallBack) |
void |
put(E o) |
int |
remainingCapacity() |
E |
remove(int index) |
boolean |
remove(java.lang.Object o) |
E |
set(int index,
E element) |
int |
size() |
E |
take() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
contains, containsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic LinkedQueue()
public LinkedQueue(int capacity)
public LinkedQueue(java.util.Collection<? extends E> c)
public void fullyLock()
public void fullyUnlock()
public int size()
public int remainingCapacity()
remainingCapacity in interface java.util.concurrent.BlockingQueue<E>public void put(E o) throws java.lang.InterruptedException
put in interface java.util.concurrent.BlockingQueue<E>java.lang.InterruptedExceptionpublic boolean offer(E o, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
offer in interface java.util.concurrent.BlockingQueue<E>java.lang.InterruptedExceptionpublic boolean offer(E o)
public E take() throws java.lang.InterruptedException
take in interface java.util.concurrent.BlockingQueue<E>java.lang.InterruptedExceptionpublic E poll(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
poll in interface java.util.concurrent.BlockingQueue<E>java.lang.InterruptedExceptionpublic boolean remove(java.lang.Object o)
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public java.lang.String toString()
toString in class java.util.AbstractCollection<E>public void clear()
public int drainTo(java.util.Collection<? super E> c)
drainTo in interface java.util.concurrent.BlockingQueue<E>public int drainTo(java.util.Collection<? super E> c, int maxElements)
drainTo in interface java.util.concurrent.BlockingQueue<E>public java.util.Iterator<E> iterator()
public E get(int index)
public boolean add(int index,
E o)
public int indexOf(E o)
public E remove(int index)
public void poll(long timeout,
java.util.concurrent.TimeUnit unit,
LinkedQueue.PollCallBack<E> pollCallBack)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic java.util.List<E> list()