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:
Iterable<E>,Collection<E>,BlockingDeque<E>,BlockingQueue<E>,Deque<E>,Queue<E>,SequencedCollection<E>
@Deprecated(since="2022-12-01")
public abstract class ForwardingBlockingDeque<E>
extends ForwardingDeque<E>
implements BlockingDeque<E>
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
A
BlockingDeque which forwards all its method calls to another BlockingDeque.
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 ForwardingBlockingDeque forward
indiscriminately to the methods of the delegate. For example, overriding ForwardingCollection.add(E)
alone will not change the behaviour of offer(E, long, java.util.concurrent.TimeUnit) which can lead to unexpected
behaviour. In this case, you should override offer as well, either providing your own
implementation, or delegating to the provided standardOffer method.
The standard methods 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
Modifier and TypeMethodDescriptionintdrainTo(Collection<? super E> c) Deprecated.intdrainTo(Collection<? super E> c, int maxElements) Deprecated.booleanDeprecated.booleanofferFirst(E e, long timeout, TimeUnit unit) Deprecated.booleanDeprecated.Deprecated.Deprecated.Deprecated.voidDeprecated.voidDeprecated.voidDeprecated.intDeprecated.take()Deprecated.Deprecated.takeLast()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, removeLastOccurrenceMethods inherited from class com.google.common.collect.ForwardingQueue
element, offer, peek, poll, removeMethods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from class com.google.common.collect.ForwardingObject
toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.BlockingDeque
add, addFirst, addLast, contains, element, iterator, offer, offerFirst, offerLast, peek, poll, push, remove, remove, removeFirstOccurrence, removeLastOccurrence, sizeMethods inherited from interface java.util.Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Method Details
-
remainingCapacity
public int remainingCapacity()Deprecated.- Specified by:
remainingCapacityin interfaceBlockingQueue<E>
-
putFirst
Deprecated.- Specified by:
putFirstin interfaceBlockingDeque<E>- Throws:
InterruptedException
-
putLast
Deprecated.- Specified by:
putLastin interfaceBlockingDeque<E>- Throws:
InterruptedException
-
offerFirst
Deprecated.- Specified by:
offerFirstin interfaceBlockingDeque<E>- Throws:
InterruptedException
-
offerLast
Deprecated.- Specified by:
offerLastin interfaceBlockingDeque<E>- Throws:
InterruptedException
-
takeFirst
Deprecated.- Specified by:
takeFirstin interfaceBlockingDeque<E>- Throws:
InterruptedException
-
takeLast
Deprecated.- Specified by:
takeLastin interfaceBlockingDeque<E>- Throws:
InterruptedException
-
pollFirst
Deprecated.- Specified by:
pollFirstin interfaceBlockingDeque<E>- Throws:
InterruptedException
-
pollLast
Deprecated.- Specified by:
pollLastin interfaceBlockingDeque<E>- Throws:
InterruptedException
-
put
Deprecated.- Specified by:
putin interfaceBlockingDeque<E>- Specified by:
putin interfaceBlockingQueue<E>- Throws:
InterruptedException
-
offer
Deprecated.- Specified by:
offerin interfaceBlockingDeque<E>- Specified by:
offerin interfaceBlockingQueue<E>- Throws:
InterruptedException
-
take
Deprecated.- Specified by:
takein interfaceBlockingDeque<E>- Specified by:
takein interfaceBlockingQueue<E>- Throws:
InterruptedException
-
poll
Deprecated.- Specified by:
pollin interfaceBlockingDeque<E>- Specified by:
pollin interfaceBlockingQueue<E>- Throws:
InterruptedException
-
drainTo
Deprecated.- Specified by:
drainToin interfaceBlockingQueue<E>
-
drainTo
Deprecated.- Specified by:
drainToin interfaceBlockingQueue<E>
-