E - public class BoundedLinkedTransferQueue<E> extends LinkedTransferQueue<E>
| Constructor and Description |
|---|
BoundedLinkedTransferQueue(int maxQueueSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
offer(E e) |
E |
poll() |
E |
poll(long timeout,
TimeUnit unit) |
void |
put(E e) |
int |
remainingCapacity()
Returns the number of free slots in this queue.
|
int |
size() |
boolean |
tryTransfer(E e) |
add, contains, drainTo, drainTo, getWaitingConsumerCount, hasWaitingConsumer, isEmpty, iterator, offer, peek, remove, take, transfer, tryTransferaddAll, clear, element, removecontainsAll, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAll, clear, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArraypublic BoundedLinkedTransferQueue(int maxQueueSize)
maxQueueSize - public int size()
size in interface Collection<E>size in class LinkedTransferQueue<E>public int remainingCapacity()
remainingCapacity in interface BlockingQueue<E>remainingCapacity in class LinkedTransferQueue<E>public E poll()
public E poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface BlockingQueue<E>poll in class LinkedTransferQueue<E>InterruptedExceptionpublic boolean tryTransfer(E e)
tryTransfer in interface TransferQueue<E>tryTransfer in class LinkedTransferQueue<E>public boolean offer(E e)
offer in interface BlockingQueue<E>offer in interface Queue<E>offer in class LinkedTransferQueue<E>public void put(E e)
put in interface BlockingQueue<E>put in class LinkedTransferQueue<E>Copyright © 2009-2012 JolBox. All Rights Reserved.