Packages

t

akka.stream.scaladsl

SourceQueue

trait SourceQueue[T] extends AnyRef

This trait allows to have the queue as a data source for some stream.

Source
Queue.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SourceQueue
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def offer(elem: T): Future[QueueOfferResult]

    Method offers next element to a stream and returns future that: - completes with Enqueued if element is consumed by a stream - completes with Dropped when stream dropped offered element - completes with QueueClosed when stream is completed during future is active - completes with Failure(f) when failure to enqueue element from upstream - fails when stream is completed

    Method offers next element to a stream and returns future that: - completes with Enqueued if element is consumed by a stream - completes with Dropped when stream dropped offered element - completes with QueueClosed when stream is completed during future is active - completes with Failure(f) when failure to enqueue element from upstream - fails when stream is 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 will return a failed Future

    elem

    element to send to a stream

  2. abstract def watchCompletion(): Future[Done]

    Method returns a Future that will be completed if this operator completes, or will be failed when the operator faces an internal failure.

    Method returns a Future that will be completed if this operator completes, or will be failed when the operator faces an internal failure.

    Note that this only means the elements have been passed downstream, not that downstream has successfully processed them.