Package com.google.common.collect
Class ForwardingBlockingDeque<E>
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingCollection<E>
-
- com.google.common.collect.ForwardingQueue<E>
-
- com.google.common.collect.ForwardingDeque<E>
-
- com.google.common.collect.ForwardingBlockingDeque<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.concurrent.BlockingDeque<E>,java.util.concurrent.BlockingQueue<E>,java.util.Deque<E>,java.util.Queue<E>
@Deprecated(since="2022-12-01") public abstract class ForwardingBlockingDeque<E> extends ForwardingDeque<E> implements java.util.concurrent.BlockingDeque<E>
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ABlockingDequewhich forwards all its method calls to anotherBlockingDeque. Subclasses should override one or more methods to modify the behavior of the backing deque as desired per the decorator pattern.Warning: The methods of
ForwardingBlockingDequeforward indiscriminately to the methods of the delegate. For example, overridingForwardingCollection.add(E)alone will not change the behaviour ofoffer(E, long, java.util.concurrent.TimeUnit)which can lead to unexpected behaviour. In this case, you should overrideofferas well, either providing your own implementation, or delegating to the providedstandardOffermethod.The
standardmethods are not guaranteed to be thread-safe, even when all of the methods that they depend on are thread-safe.- Since:
- 14.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intdrainTo(java.util.Collection<? super E> c)Deprecated.intdrainTo(java.util.Collection<? super E> c, int maxElements)Deprecated.booleanoffer(E e, long timeout, java.util.concurrent.TimeUnit unit)Deprecated.booleanofferFirst(E e, long timeout, java.util.concurrent.TimeUnit unit)Deprecated.booleanofferLast(E e, long timeout, java.util.concurrent.TimeUnit unit)Deprecated.Epoll(long timeout, java.util.concurrent.TimeUnit unit)Deprecated.EpollFirst(long timeout, java.util.concurrent.TimeUnit unit)Deprecated.EpollLast(long timeout, java.util.concurrent.TimeUnit unit)Deprecated.voidput(E e)Deprecated.voidputFirst(E e)Deprecated.voidputLast(E e)Deprecated.intremainingCapacity()Deprecated.Etake()Deprecated.EtakeFirst()Deprecated.EtakeLast()Deprecated.-
Methods inherited from class com.google.common.collect.ForwardingDeque
addFirst, addLast, descendingIterator, getFirst, getLast, offerFirst, offerLast, peekFirst, peekLast, pollFirst, pollLast, pop, push, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence
-
Methods inherited from class com.google.common.collect.ForwardingQueue
element, offer, peek, poll, remove
-
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class com.google.common.collect.ForwardingObject
toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.BlockingDeque
add, addFirst, addLast, contains, element, iterator, offer, offerFirst, offerLast, peek, poll, push, remove, remove, removeFirstOccurrence, removeLastOccurrence, size
-
Methods inherited from interface java.util.Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
-
-
-
Method Detail
-
remainingCapacity
public int remainingCapacity()
Deprecated.- Specified by:
remainingCapacityin interfacejava.util.concurrent.BlockingQueue<E>
-
putFirst
public void putFirst(E e) throws java.lang.InterruptedException
Deprecated.- Specified by:
putFirstin interfacejava.util.concurrent.BlockingDeque<E>- Throws:
java.lang.InterruptedException
-
putLast
public void putLast(E e) throws java.lang.InterruptedException
Deprecated.- Specified by:
putLastin interfacejava.util.concurrent.BlockingDeque<E>- Throws:
java.lang.InterruptedException
-
offerFirst
public boolean offerFirst(E e, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
Deprecated.- Specified by:
offerFirstin interfacejava.util.concurrent.BlockingDeque<E>- Throws:
java.lang.InterruptedException
-
offerLast
public boolean offerLast(E e, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
Deprecated.- Specified by:
offerLastin interfacejava.util.concurrent.BlockingDeque<E>- Throws:
java.lang.InterruptedException
-
takeFirst
public E takeFirst() throws java.lang.InterruptedException
Deprecated.- Specified by:
takeFirstin interfacejava.util.concurrent.BlockingDeque<E>- Throws:
java.lang.InterruptedException
-
takeLast
public E takeLast() throws java.lang.InterruptedException
Deprecated.- Specified by:
takeLastin interfacejava.util.concurrent.BlockingDeque<E>- Throws:
java.lang.InterruptedException
-
pollFirst
public E pollFirst(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
Deprecated.- Specified by:
pollFirstin interfacejava.util.concurrent.BlockingDeque<E>- Throws:
java.lang.InterruptedException
-
pollLast
public E pollLast(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
Deprecated.- Specified by:
pollLastin interfacejava.util.concurrent.BlockingDeque<E>- Throws:
java.lang.InterruptedException
-
put
public void put(E e) throws java.lang.InterruptedException
Deprecated.
-
offer
public boolean offer(E e, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
Deprecated.
-
take
public E take() throws java.lang.InterruptedException
Deprecated.
-
poll
public E poll(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
Deprecated.
-
drainTo
public int drainTo(java.util.Collection<? super E> c)
Deprecated.- Specified by:
drainToin interfacejava.util.concurrent.BlockingQueue<E>
-
-