public class CrawlQueue extends Stack<Runnable> implements BlockingQueue<Runnable>
capacityIncrement, elementCount, elementDatamodCount| Constructor and Description |
|---|
CrawlQueue() |
| Modifier and Type | Method and Description |
|---|---|
int |
drainTo(Collection<? super Runnable> c) |
int |
drainTo(Collection<? super Runnable> c,
int maxRunnablelements) |
Runnable |
element() |
boolean |
offer(Runnable e) |
boolean |
offer(Runnable e,
long timeout,
TimeUnit unit) |
Runnable |
poll() |
Runnable |
poll(long timeout,
TimeUnit unit) |
void |
put(Runnable e) |
int |
remainingCapacity() |
Runnable |
remove() |
Runnable |
take() |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, removepublic int drainTo(Collection<? super Runnable> c)
drainTo in interface BlockingQueue<Runnable>public int drainTo(Collection<? super Runnable> c, int maxRunnablelements)
drainTo in interface BlockingQueue<Runnable>public boolean offer(Runnable e)
public boolean offer(Runnable e, long timeout, TimeUnit unit)
offer in interface BlockingQueue<Runnable>public Runnable poll(long timeout, TimeUnit unit)
poll in interface BlockingQueue<Runnable>public void put(Runnable e)
put in interface BlockingQueue<Runnable>public int remainingCapacity()
remainingCapacity in interface BlockingQueue<Runnable>public Runnable take()
take in interface BlockingQueue<Runnable>Copyright © 2007-2013. All Rights Reserved.