BoundedSourceQueue

org.apache.pekko.stream.BoundedSourceQueue

A queue of the given size that gives immediate feedback whether an element could be enqueued or not.

Not for user extension

Attributes

Source
BoundedSourceQueue.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def complete(): Unit

Completes the stream normally.

Completes the stream normally.

Attributes

Source
BoundedSourceQueue.scala
def fail(ex: Throwable): Unit

Completes the stream with a failure.

Completes the stream with a failure.

Attributes

Source
BoundedSourceQueue.scala

Returns true if the stream has been completed, either normally or with failure.

Returns true if the stream has been completed, either normally or with failure.

Attributes

Since

1.1.0

Source
BoundedSourceQueue.scala
def offer(elem: T): QueueOfferResult

Returns a pekko.stream.QueueOfferResult that notifies the caller if the element could be enqueued or not, or the completion status of the queue.

Returns a pekko.stream.QueueOfferResult that notifies the caller if the element could be enqueued or not, or the completion status of the queue.

A result of QueueOfferResult.Enqueued does not guarantee that an element also has been or will be processed by the downstream.

Attributes

Source
BoundedSourceQueue.scala
def size(): Int

Returns the approximate number of elements in this queue.

Returns the approximate number of elements in this queue.

Attributes

Source
BoundedSourceQueue.scala