|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentaqueue.BlockingQueue<E>
public class BlockingQueue<E>
| Constructor Summary | |
|---|---|
BlockingQueue(Builder<E> builder)
|
|
BlockingQueue(Class<E> klass)
|
|
BlockingQueue(int capacity,
Builder<E> builder)
|
|
BlockingQueue(int capacity,
Class<E> klass)
|
|
| Method Summary | |
|---|---|
long |
available()
Return the number of objects that can be safely polled from this queue. |
void |
done()
Called to indicate that all polling have been done. |
E |
nextToOffer()
Return the next pooled mutable object that can be used by the producer. |
void |
offer(E e)
Offer an object to the queue. |
E |
poll()
Poll a object from the queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockingQueue(int capacity,
Builder<E> builder)
public BlockingQueue(Builder<E> builder)
public BlockingQueue(Class<E> klass)
public BlockingQueue(int capacity,
Class<E> klass)
| Method Detail |
|---|
public E nextToOffer()
Queue
nextToOffer in interface Queue<E>public void offer(E e)
Queue
offer in interface Queue<E>e - the object to be offered to the queue.public long available()
Queue
available in interface Queue<E>public E poll()
Queue
poll in interface Queue<E>public void done()
Queue
done in interface Queue<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||