trait SourceQueueWithComplete[T] extends SourceQueue[T]
- Alphabetic
- By Inheritance
- SourceQueueWithComplete
- SourceQueue
- AnyRef
- Any
- by QueueOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def complete(): Unit
Completes the stream normally.
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.
- abstract def fail(ex: Throwable): Unit
Completes the stream with a failure.
Completes the stream with a failure. Use
watchCompletion
to be notified of this operation’s success. - abstract def offer(elem: T): Future[QueueOfferResult]
Offers an element to a stream and returns a Future that: - completes with
Enqueued
if the element is consumed by a stream - completes withDropped
when the stream dropped the offered element - completes withQueueClosed
when the stream is completed whilst the Future is active - completes withFailure(f)
in case of failure to enqueue element from upstream - fails when stream is already completedOffers an element to a stream and returns a Future that: - completes with
Enqueued
if the element is consumed by a stream - completes withDropped
when the stream dropped the offered element - completes withQueueClosed
when the stream is completed whilst the Future is active - completes withFailure(f)
in case of failure to enqueue element from upstream - fails when stream is already completedAdditionally 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
- elem
element to send to a stream
- Definition Classes
- SourceQueue
- abstract def watchCompletion(): Future[Done]
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.
- Definition Classes
- SourceQueueWithComplete → SourceQueue
Concrete Value Members
- def asJava: javadsl.SourceQueueWithComplete[T]
Converts the queue into a
javadsl.SourceQueueWithComplete
Converts the queue into a
javadsl.SourceQueueWithComplete
- Implicit
- This member is added by an implicit conversion from SourceQueueWithComplete[T] toQueueOps[T] performed by method QueueOps in akka.stream.scaladsl.SourceQueueWithComplete.
- Definition Classes
- QueueOps
- val queue: SourceQueueWithComplete[T]
- Implicit
- This member is added by an implicit conversion from SourceQueueWithComplete[T] toQueueOps[T] performed by method QueueOps in akka.stream.scaladsl.SourceQueueWithComplete.
- Definition Classes
- QueueOps