t

akka.stream.javadsl

SourceQueueWithComplete

trait SourceQueueWithComplete[T] extends SourceQueue[T]

This trait adds completion support to SourceQueue.

Source
Queue.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SourceQueueWithComplete
  2. SourceQueue
  3. AnyRef
  4. 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 complete(): Unit

    Complete the stream normally.

    Complete the stream normally. Use watchCompletion to be notified of this operation’s success.

  2. abstract def fail(ex: Throwable): Unit

    Complete the stream with a failure.

    Complete the stream with a failure. Use watchCompletion to be notified of this operation’s success.

  3. abstract def offer(elem: T): CompletionStage[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 or you cannot call offer in this moment because of implementation rules (like for backpressure mode and full buffer you need to wait for last offer call Future completion)

    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 or you cannot call offer in this moment because of implementation rules (like for backpressure mode and full buffer you need to wait for last offer call Future completion)

    elem

    element to send to a stream

    Definition Classes
    SourceQueue
  4. abstract def watchCompletion(): CompletionStage[Done]

    Method returns future that completes when stream is completed and fails when stream failed

    Method returns future that completes when stream is completed and fails when stream failed

    Definition Classes
    SourceQueue