Class UnorderedStreamElementQueue<OUT>

  • All Implemented Interfaces:
    StreamElementQueue<OUT>

    @Internal
    public final class UnorderedStreamElementQueue<OUT>
    extends Object
    implements StreamElementQueue<OUT>
    Unordered implementation of the StreamElementQueue. The unordered stream element queue provides asynchronous results as soon as they are completed. Additionally, it maintains the watermark-stream record order.

    Elements can be logically grouped into different segments separated by watermarks. A segment needs to be completely emitted before entries from a following segment are emitted. Thus, no stream record can be overtaken by a watermark and no watermark can overtake a stream record. However, stream records falling in the same segment between two watermarks can overtake each other (their emission order is not guaranteed).

    • Constructor Detail

      • UnorderedStreamElementQueue

        public UnorderedStreamElementQueue​(int capacity)