Class ForwardingBlockingQueue<E>

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

    @GwtIncompatible
    public abstract class ForwardingBlockingQueue<E>
    extends ForwardingQueue<E>
    implements BlockingQueue<E>
    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.

    default method warning: This class does not forward calls to default methods. Instead, it inherits their default implementations. When those implementations invoke methods, they invoke methods on the ForwardingBlockingQueue.

    Since:
    4.0
    Author:
    Raimundo Mirisola