Package org.apache.pekko.stream.scaladsl
Interface SourceQueueWithComplete<T>
- 
- All Superinterfaces:
- SourceQueue<T>
 
 public interface SourceQueueWithComplete<T> extends SourceQueue<T> This trait adds completion support toSourceQueue.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classSourceQueueWithComplete.QueueOps<T>static classSourceQueueWithComplete.QueueOps$
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcomplete()Completes the stream normally.voidfail(java.lang.Throwable ex)Completes the stream with a failure.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.- 
Methods inherited from interface org.apache.pekko.stream.scaladsl.SourceQueueoffer
 
- 
 
- 
- 
- 
Method Detail- 
completevoid 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. 
 - 
failvoid fail(java.lang.Throwable ex) Completes the stream with a failure. UsewatchCompletionto be notified of this operation’s success.
 - 
watchCompletionscala.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 interface- SourceQueue<T>
 
 
- 
 
-