Class

org.squbs.pattern.stream

BroadcastBuffer

Related Doc: package stream

Permalink

class BroadcastBuffer[T] extends GraphStage[UniformFanOutShape[T, Event[T]]]

Fan-out the stream to several streams emitting each incoming upstream element to all downstream consumers.

Emits when one of the inputs has an element available

Does not back-pressure upstream when downstream back-pressures, instead buffers the stream element to memory mapped queue

Completes when upstream completes and all downstream finish consuming stream elements

Cancels when downstream cancels

In addition to this, a commit guarantee can be ensured to avoid data lost while consuming stream elements, to enable this, set the auto-commit to false and add a commit stage after downstream consumer.

Linear Supertypes
GraphStage[UniformFanOutShape[T, Event[T]]], GraphStageWithMaterializedValue[UniformFanOutShape[T, Event[T]], NotUsed], Graph[UniformFanOutShape[T, Event[T]], NotUsed], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BroadcastBuffer
  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 BroadcastBuffer(persistDir: File)(implicit serializer: QueueSerializer[T], system: ActorSystem)

    Permalink
  2. new BroadcastBuffer(config: Config)(implicit serializer: QueueSerializer[T], system: ActorSystem)

    Permalink

Type Members

  1. type Shape = UniformFanOutShape[T, Event[T]]

    Permalink
    Definition Classes
    Graph

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addAttributes(attr: Attributes): Graph[UniformFanOutShape[T, Event[T]], NotUsed]

    Permalink
    Definition Classes
    Graph
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def async: Graph[UniformFanOutShape[T, Event[T]], NotUsed]

    Permalink
    Definition Classes
    Graph
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def commit[S]: Flow[Event[S], Event[S], NotUsed]

    Permalink
  9. def createLogic(inheritedAttributes: Attributes): GraphStageLogic

    Permalink
    Definition Classes
    BroadcastBuffer → GraphStage
  10. final def createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)

    Permalink
    Definition Classes
    GraphStage → GraphStageWithMaterializedValue
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def initialAttributes: Attributes

    Permalink
    Attributes
    protected
    Definition Classes
    GraphStageWithMaterializedValue
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final lazy val module: Module

    Permalink
    Definition Classes
    GraphStageWithMaterializedValue → Graph
  19. def named(name: String): Graph[UniformFanOutShape[T, Event[T]], NotUsed]

    Permalink
    Definition Classes
    Graph
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val shape: UniformFanOutShape[T, Event[T]]

    Permalink
    Definition Classes
    BroadcastBuffer → Graph
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def withAttributes(attr: Attributes): Graph[UniformFanOutShape[T, Event[T]], NotUsed]

    Permalink
    Definition Classes
    GraphStageWithMaterializedValue → Graph
  30. def withOnCommitCallback(onCommitCallback: (Int) ⇒ Unit): BroadcastBuffer[T]

    Permalink
  31. def withOnPushCallback(onPushCallback: () ⇒ Unit): BroadcastBuffer[T]

    Permalink

Inherited from GraphStage[UniformFanOutShape[T, Event[T]]]

Inherited from GraphStageWithMaterializedValue[UniformFanOutShape[T, Event[T]], NotUsed]

Inherited from Graph[UniformFanOutShape[T, Event[T]], NotUsed]

Inherited from AnyRef

Inherited from Any

Ungrouped