class ReferenceBlockingDeque<T> extends ReferenceDeque<T> implements java.util.concurrent.BlockingDeque<T>
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.BlockingDeque<Referrer<T>> |
deque |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
ReferenceBlockingDeque(java.util.concurrent.BlockingDeque<Referrer<T>> deque,
Ref type,
boolean gcThreads,
long gcCycle) |
| Modifier and Type | Method and Description |
|---|---|
int |
drainTo(Collection<? super T> c) |
int |
drainTo(Collection<? super T> c,
int maxElements) |
boolean |
offer(T e,
long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
offerFirst(T e,
long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
offerLast(T e,
long timeout,
java.util.concurrent.TimeUnit unit) |
T |
poll(long timeout,
java.util.concurrent.TimeUnit unit) |
T |
pollFirst(long timeout,
java.util.concurrent.TimeUnit unit) |
T |
pollLast(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
put(T e) |
void |
putFirst(T e) |
void |
putLast(T e) |
private void |
readObject(ObjectInputStream stream) |
int |
remainingCapacity() |
T |
take() |
T |
takeFirst() |
T |
takeLast() |
addFirst, addLast, descendingIterator, getFirst, getLast, offerFirst, offerLast, peekFirst, peekLast, pollFirst, pollLast, pop, push, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrenceelement, offer, peek, poll, removeadd, addAll, clear, contains, containsAll, equals, getRef, getRQF, hashCode, isEmpty, iterator, processQueue, remove, size, toString, wrapObj, writeReplaceremoveAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addFirst, addLast, contains, element, iterator, offer, offerFirst, offerLast, peek, poll, push, remove, remove, removeFirstOccurrence, removeLastOccurrence, sizedescendingIterator, getFirst, getLast, peekFirst, peekLast, pollFirst, pollLast, pop, removeFirst, removeLastaddAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArrayprivate static final long serialVersionUID
private final java.util.concurrent.BlockingDeque<Referrer<T>> deque
ReferenceBlockingDeque(java.util.concurrent.BlockingDeque<Referrer<T>> deque, Ref type, boolean gcThreads, long gcCycle)
private void readObject(ObjectInputStream stream) throws InvalidObjectException
InvalidObjectExceptionpublic void putFirst(T e) throws InterruptedException
putFirst in interface java.util.concurrent.BlockingDeque<T>InterruptedExceptionpublic void putLast(T e) throws InterruptedException
putLast in interface java.util.concurrent.BlockingDeque<T>InterruptedExceptionpublic boolean offerFirst(T e, long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
offerFirst in interface java.util.concurrent.BlockingDeque<T>InterruptedExceptionpublic boolean offerLast(T e, long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
offerLast in interface java.util.concurrent.BlockingDeque<T>InterruptedExceptionpublic T takeFirst() throws InterruptedException
takeFirst in interface java.util.concurrent.BlockingDeque<T>InterruptedExceptionpublic T takeLast() throws InterruptedException
takeLast in interface java.util.concurrent.BlockingDeque<T>InterruptedExceptionpublic T pollFirst(long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
pollFirst in interface java.util.concurrent.BlockingDeque<T>InterruptedExceptionpublic T pollLast(long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
pollLast in interface java.util.concurrent.BlockingDeque<T>InterruptedExceptionpublic void put(T e) throws InterruptedException
put in interface java.util.concurrent.BlockingDeque<T>put in interface java.util.concurrent.BlockingQueue<T>InterruptedExceptionpublic boolean offer(T e, long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
offer in interface java.util.concurrent.BlockingDeque<T>offer in interface java.util.concurrent.BlockingQueue<T>InterruptedExceptionpublic T take() throws InterruptedException
take in interface java.util.concurrent.BlockingDeque<T>take in interface java.util.concurrent.BlockingQueue<T>InterruptedExceptionpublic T poll(long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
poll in interface java.util.concurrent.BlockingDeque<T>poll in interface java.util.concurrent.BlockingQueue<T>InterruptedExceptionpublic int remainingCapacity()
remainingCapacity in interface java.util.concurrent.BlockingQueue<T>public int drainTo(Collection<? super T> c)
drainTo in interface java.util.concurrent.BlockingQueue<T>public int drainTo(Collection<? super T> c, int maxElements)
drainTo in interface java.util.concurrent.BlockingQueue<T>Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.