final class AccumulateWhileUnchanged[Element, Property] extends GraphStage[FlowShape[Element, Seq[Element]]]

Accumulates elements of type Element while a property extracted with propertyExtractor remains unchanged, emits an accumulated sequence when the property changes, maxElements is reached or maxDuration has passed.

Element

type of accumulated elements

Property

type of the observed property

Linear Supertypes
GraphStage[FlowShape[Element, Seq[Element]]], GraphStageWithMaterializedValue[FlowShape[Element, Seq[Element]], NotUsed], Graph[FlowShape[Element, Seq[Element]], NotUsed], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AccumulateWhileUnchanged
  2. GraphStage
  3. GraphStageWithMaterializedValue
  4. Graph
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AccumulateWhileUnchanged(propertyExtractor: (Element) ⇒ Property, maxElements: Option[Int] = None, maxDuration: Option[FiniteDuration] = None)

    propertyExtractor

    a function to extract the observed element property

    maxElements

    maximum number of elements to accumulate before emitting, if defined.

    maxDuration

    maximum duration to accumulate elements before emitting, if defined.

Type Members

  1. type Shape = FlowShape[Element, Seq[Element]]
    Definition Classes
    Graph

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAttributes(attr: Attributes): Graph[FlowShape[Element, Seq[Element]], NotUsed]
    Definition Classes
    Graph
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def async(dispatcher: String, inputBufferSize: Int): Graph[FlowShape[Element, Seq[Element]], NotUsed]
    Definition Classes
    Graph
  7. def async(dispatcher: String): Graph[FlowShape[Element, Seq[Element]], NotUsed]
    Definition Classes
    Graph
  8. def async: Graph[FlowShape[Element, Seq[Element]], NotUsed]
    Definition Classes
    Graph
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. def createLogic(inheritedAttributes: Attributes): TimerGraphStageLogic
    Definition Classes
    AccumulateWhileUnchanged → GraphStage
  11. final def createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)
    Definition Classes
    GraphStage → GraphStageWithMaterializedValue
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. val in: Inlet[Element]
  18. def initialAttributes: Attributes
    Attributes
    protected
    Definition Classes
    GraphStageWithMaterializedValue
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def named(name: String): Graph[FlowShape[Element, Seq[Element]], NotUsed]
    Definition Classes
    Graph
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. val out: Outlet[Seq[Element]]
  25. def shape: FlowShape[Element, Seq[Element]]
    Definition Classes
    AccumulateWhileUnchanged → Graph
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  31. final def withAttributes(attr: Attributes): Graph[FlowShape[Element, Seq[Element]], NotUsed]
    Definition Classes
    GraphStageWithMaterializedValue → Graph

Inherited from GraphStage[FlowShape[Element, Seq[Element]]]

Inherited from GraphStageWithMaterializedValue[FlowShape[Element, Seq[Element]], NotUsed]

Inherited from Graph[FlowShape[Element, Seq[Element]], NotUsed]

Inherited from AnyRef

Inherited from Any

Ungrouped