Class ForwardingBlockingQueue<E>

  • Type Parameters:
    E - the type of elements held in this collection
    All Implemented Interfaces:
    java.lang.Iterable<E>, java.util.Collection<E>, java.util.concurrent.BlockingQueue<E>, java.util.Queue<E>

    @Deprecated(since="2022-12-01")
    public abstract class ForwardingBlockingQueue<E>
    extends ForwardingQueue<E>
    implements java.util.concurrent.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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int drainTo​(java.util.Collection<? super E> c)
      Deprecated.
       
      int drainTo​(java.util.Collection<? super E> c, int maxElements)
      Deprecated.
       
      boolean offer​(E e, long timeout, java.util.concurrent.TimeUnit unit)
      Deprecated.
       
      E poll​(long timeout, java.util.concurrent.TimeUnit unit)
      Deprecated.
       
      void put​(E e)
      Deprecated.
       
      int remainingCapacity()
      Deprecated.
       
      E take()
      Deprecated.
       
      • 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
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Queue

        element, peek, poll, remove
    • Method Detail

      • drainTo

        public int drainTo​(java.util.Collection<? super E> c,
                           int maxElements)
        Deprecated.
        Specified by:
        drainTo in interface java.util.concurrent.BlockingQueue<E>
      • drainTo

        public int drainTo​(java.util.Collection<? super E> c)
        Deprecated.
        Specified by:
        drainTo in interface java.util.concurrent.BlockingQueue<E>
      • offer

        public boolean offer​(E e,
                             long timeout,
                             java.util.concurrent.TimeUnit unit)
                      throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        offer in interface java.util.concurrent.BlockingQueue<E>
        Throws:
        java.lang.InterruptedException
      • poll

        public E poll​(long timeout,
                      java.util.concurrent.TimeUnit unit)
               throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        poll in interface java.util.concurrent.BlockingQueue<E>
        Throws:
        java.lang.InterruptedException
      • put

        public void put​(E e)
                 throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        put in interface java.util.concurrent.BlockingQueue<E>
        Throws:
        java.lang.InterruptedException
      • remainingCapacity

        public int remainingCapacity()
        Deprecated.
        Specified by:
        remainingCapacity in interface java.util.concurrent.BlockingQueue<E>
      • take

        public E take()
               throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        take in interface java.util.concurrent.BlockingQueue<E>
        Throws:
        java.lang.InterruptedException