Class SinkQueueAdapter<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()
      Cancel the stream.
      java.util.concurrent.CompletionStage<java.util.Optional<T>> pull()
      Method pulls elements from stream and returns future that: - fails if stream is failed - completes with None in case if stream is completed - completes with Some(element) in case next element is available from stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • pull

        public java.util.concurrent.CompletionStage<java.util.Optional<T>> pull()
        Description copied from interface: SinkQueue
        Method pulls elements from stream and returns future that: - fails if stream is failed - completes with None in case if stream is completed - completes with Some(element) in case next element is available from stream.
        Specified by:
        pull in interface SinkQueue<T>
        Returns:
        (undocumented)