Package akka.stream.scaladsl
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. ASinkQueuepulls data from a stream with a backpressure mechanism. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description scala.concurrent.Future<scala.Option<T>>pull()Pulls elements from the stream and returns aFuturethat: - fails if the stream is failed - completes with None in case the stream is completed - completes withSome(element)in case the next element is available from stream. 
 - 
 
- 
- 
Method Detail
- 
pull
scala.concurrent.Future<scala.Option<T>> pull()
Pulls elements from the stream and returns aFuturethat: - fails if the stream is failed - completes with None in case the stream is completed - completes withSome(element)in case the next element is available from stream. 
 - 
 
 -