Class ForwardingBlockingDeque<E>

  • All Implemented Interfaces:
    Iterable<E>, Collection<E>, BlockingDeque<E>, BlockingQueue<E>, Deque<E>, Queue<E>

    @Deprecated
    @GwtIncompatible
    public abstract class ForwardingBlockingDeque<E>
    extends ForwardingDeque<E>
    implements BlockingDeque<E>
    Deprecated.
    This class has moved to com.google.common.util.concurrent. Please use ForwardingBlockingDeque instead.
    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.

    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 ForwardingBlockingDeque.

    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
    Author:
    Emily Soldal