class
BroadcastBuffer[T] extends GraphStage[UniformFanOutShape[T, Event[T]]]
Instance Constructors
-
new
BroadcastBuffer(persistDir: File)(implicit serializer: QueueSerializer[T], system: ActorSystem)
-
new
BroadcastBuffer(config: Config)(implicit serializer: QueueSerializer[T], system: ActorSystem)
Type Members
-
type
Shape = UniformFanOutShape[T, Event[T]]
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
addAttributes(attr: Attributes): Graph[UniformFanOutShape[T, Event[T]], NotUsed]
-
final
def
asInstanceOf[T0]: T0
-
def
async: Graph[UniformFanOutShape[T, Event[T]], NotUsed]
-
def
clone(): AnyRef
-
def
commit[S]: Flow[Event[S], Event[S], NotUsed]
-
def
createLogic(inheritedAttributes: Attributes): GraphStageLogic
-
final
def
createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
initialAttributes: Attributes
-
final
def
isInstanceOf[T0]: Boolean
-
final
lazy val
module: Module
-
def
named(name: String): Graph[UniformFanOutShape[T, Event[T]], NotUsed]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
shape: UniformFanOutShape[T, Event[T]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
final
def
withAttributes(attr: Attributes): Graph[UniformFanOutShape[T, Event[T]], NotUsed]
-
def
withOnCommitCallback(onCommitCallback: (Int) ⇒ Unit): BroadcastBuffer[T]
-
def
withOnPushCallback(onPushCallback: () ⇒ Unit): BroadcastBuffer[T]
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
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
tofalse
and add a commit stage after downstream consumer.