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, removeLastOccurrence
element, offer, peek, poll, remove
add, addAll, clear, contains, containsAll, equals, getRef, getRQF, hashCode, isEmpty, iterator, processQueue, remove, size, toString, wrapObj, writeReplace
removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addFirst, addLast, contains, element, iterator, offer, offerFirst, offerLast, peek, poll, push, remove, remove, removeFirstOccurrence, removeLastOccurrence, size
descendingIterator, getFirst, getLast, peekFirst, peekLast, pollFirst, pollLast, pop, removeFirst, removeLast
addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray
private 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
InvalidObjectException
public void putFirst(T e) throws InterruptedException
putFirst
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public void putLast(T e) throws InterruptedException
putLast
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public boolean offerFirst(T e, long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
offerFirst
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public boolean offerLast(T e, long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
offerLast
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public T takeFirst() throws InterruptedException
takeFirst
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public T takeLast() throws InterruptedException
takeLast
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public T pollFirst(long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
pollFirst
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public T pollLast(long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
pollLast
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public void put(T e) throws InterruptedException
put
in interface java.util.concurrent.BlockingDeque<T>
put
in interface java.util.concurrent.BlockingQueue<T>
InterruptedException
public 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>
InterruptedException
public T take() throws InterruptedException
take
in interface java.util.concurrent.BlockingDeque<T>
take
in interface java.util.concurrent.BlockingQueue<T>
InterruptedException
public 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>
InterruptedException
public 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.