Package org.apache.pekko.stream.scaladsl
Interface SourceQueueWithComplete<T>
- All Superinterfaces:
SourceQueue<T>
This trait adds completion support to
SourceQueue.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic class -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()Completes the stream normally.voidCompletes the stream with a failure.scala.concurrent.Future<Done>Method returns aFuturethat will be completed if this operator completes, or will be failed when the stream fails, for example whenSourceQueueWithComplete.failis invoked.Methods inherited from interface org.apache.pekko.stream.scaladsl.SourceQueue
offer
-
Method Details
-
complete
void complete()Completes the stream normally. UsewatchCompletionto 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.
-
fail
Completes the stream with a failure. UsewatchCompletionto be notified of this operation’s success. -
watchCompletion
scala.concurrent.Future<Done> watchCompletion()Method returns aFuturethat will be completed if this operator completes, or will be failed when the stream fails, for example whenSourceQueueWithComplete.failis invoked.Note that this only means the elements have been passed downstream, not that downstream has successfully processed them.
- Specified by:
watchCompletionin interfaceSourceQueue<T>
-