ZipLatest

org.apache.pekko.stream.scaladsl.ZipLatest
See theZipLatest companion object
final class ZipLatest[A, B](eagerComplete: Boolean) extends ZipLatestWith2[A, B, (A, B)]

Combine the elements of 2 streams into a stream of tuples, picking always the latest element of each.

A ZipLatest has a left and a right input port and one out port.

No element is emitted until at least one element from each Source becomes available.

'''Emits when''' all of the inputs have at least an element available, and then each time an element becomes

  • available on either of the inputs

'''Backpressures when''' downstream backpressures

'''Completes when''' any upstream completes if eagerComplete is enabled or wait for all upstreams to complete

'''Cancels when''' downstream cancels

Attributes

Companion
object
Source
Graph.scala
Graph
Supertypes
class ZipLatestWith2[A, B, (A, B)]
class GraphStage[FanInShape2[A, B, (A, B)]]
trait Graph[FanInShape2[A, B, (A, B)], NotUsed]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type Shape = FanInShape2[A, B, (A, B)]

Type-level accessor for the shape parameter of this graph.

Type-level accessor for the shape parameter of this graph.

Attributes

Inherited from:
Graph
Source
Graph.scala

Value members

Constructors

def this()

Attributes

Source
Graph.scala

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Source
Graph.scala

Inherited methods

def addAttributes(attr: Attributes): Graph[FanInShape2[A, B, (A, B)], NotUsed]

Add the given attributes to this Graph. If the specific attribute was already present on this graph this means the added attribute will be more specific than the existing one. If this Source is a composite of multiple graphs, new attributes on the composite will be less specific than attributes set directly on the individual graphs of the composite.

Add the given attributes to this Graph. If the specific attribute was already present on this graph this means the added attribute will be more specific than the existing one. If this Source is a composite of multiple graphs, new attributes on the composite will be less specific than attributes set directly on the individual graphs of the composite.

Attributes

Inherited from:
Graph
Source
Graph.scala
def async(dispatcher: String, inputBufferSize: Int): Graph[FanInShape2[A, B, (A, B)], NotUsed]

Put an asynchronous boundary around this Graph

Put an asynchronous boundary around this Graph

Value parameters

dispatcher

Run the graph on this dispatcher

inputBufferSize

Set the input buffer to this size for the graph

Attributes

Inherited from:
Graph
Source
Graph.scala
def async(dispatcher: String): Graph[FanInShape2[A, B, (A, B)], NotUsed]

Put an asynchronous boundary around this Graph

Put an asynchronous boundary around this Graph

Value parameters

dispatcher

Run the graph on this dispatcher

Attributes

Inherited from:
Graph
Source
Graph.scala
def async: Graph[FanInShape2[A, B, (A, B)], NotUsed]

Put an asynchronous boundary around this Graph

Put an asynchronous boundary around this Graph

Attributes

Inherited from:
Graph
Source
Graph.scala
override def createLogic(inheritedAttributes: Attributes): GraphStageLogic

Attributes

Definition Classes
Inherited from:
ZipLatestWith2
Source
ZipLatestWithApply.scala
final override def createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)

Attributes

Definition Classes
Inherited from:
GraphStage
Source
GraphStage.scala

Attributes

Inherited from:
Graph
Source
Graph.scala

Attributes

Definition Classes
Inherited from:
ZipLatestWith2
Source
ZipLatestWithApply.scala
def named(name: String): Graph[FanInShape2[A, B, (A, B)], NotUsed]

Specifies the name of the Graph. If the name is null or empty the name is ignored, i.e. #none is returned.

Specifies the name of the Graph. If the name is null or empty the name is ignored, i.e. #none is returned.

Attributes

Inherited from:
Graph
Source
Graph.scala
def out: Outlet[(A, B)]

Attributes

Inherited from:
ZipLatestWith2
Source
ZipLatestWithApply.scala
final override def withAttributes(attr: Attributes): Graph[FanInShape2[A, B, (A, B)], NotUsed]

Replace the attributes of this Flow with the given ones. If this Flow is a composite of multiple graphs, new attributes on the composite will be less specific than attributes set directly on the individual graphs of the composite.

Replace the attributes of this Flow with the given ones. If this Flow is a composite of multiple graphs, new attributes on the composite will be less specific than attributes set directly on the individual graphs of the composite.

Attributes

Definition Classes
Inherited from:
GraphStageWithMaterializedValue
Source
GraphStage.scala

Inherited fields

val in0: Inlet[A]

Attributes

Inherited from:
ZipLatestWith2
Source
ZipLatestWithApply.scala
val in1: Inlet[B]

Attributes

Inherited from:
ZipLatestWith2
Source
ZipLatestWithApply.scala
override val shape: FanInShape2[A, B, (A, B)]

The shape of a graph is all that is externally visible: its inlets and outlets.

The shape of a graph is all that is externally visible: its inlets and outlets.

Attributes

Inherited from:
ZipLatestWith2
Source
ZipLatestWithApply.scala
val zipper: (A, B) => (A, B)

Attributes

Inherited from:
ZipLatestWith2
Source
ZipLatestWithApply.scala