Class AbstractUnimplementedQueue<T>

  • Type Parameters:
    T - T
    All Implemented Interfaces:
    Iterable<T>, Collection<T>, Queue<T>
    Direct Known Subclasses:
    AbstractStreamObserverAndPublisher

    public abstract class AbstractUnimplementedQueue<T>
    extends Object
    implements Queue<T>
    AbstractUnimplementedQueue provides a base class for implementing reactive operation fusion queues in a framework agnostic way. RxJava and Reactor both have the concept of a "simple queue", which lacks most of the complexity of java.util.Queue, however, these interfaces are not interoperable when writing shared code.

    This class implements the unused (not "simple") parts java.util.Queue such that they throw UnsupportedOperationException so that subclasses only have to implement the "simple" parts.