SinkQueueWithCancel

org.apache.pekko.stream.javadsl.SinkQueueWithCancel
See theSinkQueueWithCancel companion object
trait SinkQueueWithCancel[T] extends SinkQueue[T]

This trait adds cancel support to SinkQueue.

Attributes

Companion
object
Source
Queue.scala
Graph
Supertypes
trait SinkQueue[T]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def cancel(): Unit

Cancels the stream. This method returns right away without waiting for actual finalizing the stream.

Cancels the stream. This method returns right away without waiting for actual finalizing the stream.

Attributes

Source
Queue.scala

Inherited methods

def pull(): CompletionStage[Optional[T]]

Pulls elements from the stream and returns a CompletionStage that:

Pulls elements from the stream and returns a CompletionStage that:

  • fails if the stream is failed
  • completes with Empty in case the stream is completed
  • completes with element in case the next element is available from the stream.

Attributes

Inherited from:
SinkQueue
Source
Queue.scala