This trait adds completion support to SourceQueue.
Attributes
- Companion
- object
- Source
- Queue.scala
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Completes the stream normally. Use watchCompletion to be notified of this operation’s success.
Completes the stream normally. Use watchCompletion to be notified of this operation’s success.
Note that this only means the elements have been passed downstream, not that downstream has successfully processed them.
Attributes
- Source
- Queue.scala
Completes the stream with a failure. Use watchCompletion to be notified of this operation’s success.
Completes the stream with a failure. Use watchCompletion to be notified of this operation’s success.
Attributes
- Source
- Queue.scala
Method returns a Future that will be completed if this operator completes, or will be failed when the stream fails, for example when SourceQueueWithComplete.fail is invoked.
Method returns a Future that will be completed if this operator completes, or will be failed when the stream fails, for example when SourceQueueWithComplete.fail is invoked.
Note that this only means the elements have been passed downstream, not that downstream has successfully processed them.
Attributes
- Source
- Queue.scala
Concrete methods
Converts the queue into a javadsl.SourceQueueWithComplete
Inherited methods
Offers an element to a stream and returns a Future that:
Offers an element to a stream and returns a Future that:
- completes with
Enqueuedif the element is consumed by a stream - completes with
Droppedwhen the stream dropped the offered element - completes with
QueueClosedwhen the stream is completed whilst the Future is active - completes with
Failure(f)in case of failure to enqueue element from upstream - fails when stream is already completed
Additionally when using the backpressure overflowStrategy:
- If the buffer is full the Future won't be completed until there is space in the buffer
- Calling offer before the Future is completed, in this case it will return a failed Future
Value parameters
- elem
-
element to send to a stream
Attributes
- Inherited from:
- SourceQueue
- Source
- Queue.scala
Concrete fields
Attributes
- Source
- Queue.scala