Class ForwardingBlockingQueue<E>
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingCollection<E>
com.google.common.collect.ForwardingQueue<E>
com.google.common.util.concurrent.ForwardingBlockingQueue<E>
- Type Parameters:
E
- the type of elements held in this collection
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,BlockingQueue<E>
,Queue<E>
@Deprecated(since="2022-12-01")
public abstract class ForwardingBlockingQueue<E>
extends ForwardingQueue<E>
implements BlockingQueue<E>
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
A
BlockingQueue
which forwards all its method calls to another
BlockingQueue
. Subclasses should override one or more methods to
modify the behavior of the backing collection as desired per the decorator pattern.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionint
drainTo
(Collection<? super E> c) Deprecated.int
drainTo
(Collection<? super E> c, int maxElements) Deprecated.boolean
Deprecated.Deprecated.void
Deprecated.int
Deprecated.take()
Deprecated.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.BlockingQueue
add, contains, offer, remove
Methods inherited from interface java.util.Collection
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
Method Details
-
drainTo
Deprecated.- Specified by:
drainTo
in interfaceBlockingQueue<E>
-
drainTo
Deprecated.- Specified by:
drainTo
in interfaceBlockingQueue<E>
-
offer
Deprecated.- Specified by:
offer
in interfaceBlockingQueue<E>
- Throws:
InterruptedException
-
poll
Deprecated.- Specified by:
poll
in interfaceBlockingQueue<E>
- Throws:
InterruptedException
-
put
Deprecated.- Specified by:
put
in interfaceBlockingQueue<E>
- Throws:
InterruptedException
-
remainingCapacity
public int remainingCapacity()Deprecated.- Specified by:
remainingCapacity
in interfaceBlockingQueue<E>
-
take
Deprecated.- Specified by:
take
in interfaceBlockingQueue<E>
- Throws:
InterruptedException
-