Interface SinkQueue<T>

All Known Subinterfaces:
SinkQueueWithCancel<T>

public interface SinkQueue<T>
This trait allows to have a queue as a sink for a stream. A SinkQueue pulls data from stream with a backpressure mechanism.
  • Method Summary

    Modifier and Type
    Method
    Description
    Pulls elements from the stream and returns a CompletionStage that: - fails if the stream is failed - completes with Empty in case the stream is completed - completes with element in case the next element is available from the stream.
  • Method Details

    • pull

      Pulls elements from the stream and returns a CompletionStage that: - fails if the stream is failed - completes with Empty in case the stream is completed - completes with element in case the next element is available from the stream.